2
3
镜像自地址 https://github.com/sammy-ette/Hilbish 已同步 2025-08-10 02:52:03 +00:00

fix: empty multiline prompt if entire prompt is single line

这个提交包含在:
TorchedSammy 2022-03-13 16:42:14 -04:00
父节点 5e505d0a8d
当前提交 7d9c7ddf18
签署人:: sammyette
GPG 密钥 ID: 904FC49417B44DCD

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 {