kopie van
https://github.com/Hilbis/Hilbish
synced 2025-07-15 15:22:03 +00:00
fix: empty multiline prompt if entire prompt is single line
This commit is contained in:
bovenliggende
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]
|
||||
} else {
|
||||
lr.rl.Multiline = false
|
||||
lr.rl.MultilinePrompt = ""
|
||||
lr.rl.SetPrompt(p)
|
||||
}
|
||||
if initialized && !running {
|
||||
|
Laden…
x
Verwijs in nieuw issue
Block a user