Correction bug readline + maj des dépendances

This commit is contained in:
Benjamin VAUDOUR 2024-02-21 10:50:17 +01:00
parent 6334405a48
commit 721dfd1e4f
3 changed files with 6 additions and 2 deletions

4
go.mod
View File

@ -1,3 +1,5 @@
module gitea.zaclys.com/bvaudour/readline module gitea.zaclys.com/bvaudour/readline
go 1.21.3 go 1.22
require gitea.zaclys.com/bvaudour/gob v0.0.0-20240221091259-5b437644bd67

2
go.sum Normal file
View File

@ -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=

View File

@ -192,7 +192,7 @@ func (rl *Readline) prompt(p string, isPassword bool) (result Result[string]) {
} }
} }
if isErr { if !isErr {
r, _ := rl.st.Buffer() r, _ := rl.st.Buffer()
result = Ok(r) result = Ok(r)
if !isPassword && len(r) > 0 { if !isPassword && len(r) > 0 {