mirror of https://github.com/Hilbis/Hilbish
fix: empty multiline prompt if entire prompt is single line
parent
5e505d0a8d
commit
7d9c7ddf18
1
rl.go
1
rl.go
|
@ -192,6 +192,7 @@ func (lr *lineReader) SetPrompt(p string) {
|
||||||
lr.rl.MultilinePrompt = halfPrompt[len(halfPrompt) - 1:][0]
|
lr.rl.MultilinePrompt = halfPrompt[len(halfPrompt) - 1:][0]
|
||||||
} else {
|
} else {
|
||||||
lr.rl.Multiline = false
|
lr.rl.Multiline = false
|
||||||
|
lr.rl.MultilinePrompt = ""
|
||||||
lr.rl.SetPrompt(p)
|
lr.rl.SetPrompt(p)
|
||||||
}
|
}
|
||||||
if initialized && !running {
|
if initialized && !running {
|
||||||
|
|
Loading…
Reference in New Issue