Correction bug readline + maj des dépendances
This commit is contained in:
parent
6334405a48
commit
721dfd1e4f
4
go.mod
4
go.mod
|
@ -1,3 +1,5 @@
|
|||
module gitea.zaclys.com/bvaudour/readline
|
||||
|
||||
go 1.21.3
|
||||
go 1.22
|
||||
|
||||
require gitea.zaclys.com/bvaudour/gob v0.0.0-20240221091259-5b437644bd67
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
gitea.zaclys.com/bvaudour/gob v0.0.0-20240221091259-5b437644bd67 h1:Fe9g2grCWVsKCZktydlUNff4ihjRIWO2U7EBVHosdOw=
|
||||
gitea.zaclys.com/bvaudour/gob v0.0.0-20240221091259-5b437644bd67/go.mod h1:Gw6x0KNKoXv6AMtRkaI+iWM2enVzwHikUSskuEzWQz4=
|
|
@ -192,7 +192,7 @@ func (rl *Readline) prompt(p string, isPassword bool) (result Result[string]) {
|
|||
}
|
||||
}
|
||||
|
||||
if isErr {
|
||||
if !isErr {
|
||||
r, _ := rl.st.Buffer()
|
||||
result = Ok(r)
|
||||
if !isPassword && len(r) > 0 {
|
||||
|
|
Loading…
Reference in New Issue