mirror of https://github.com/Hilbis/Hilbish
fix: set prompt to normal after ctrl d exit
this prevents the prompt being stuck at the multiline prompt instead of normal prompt after exiting via the ctrl d bindpull/207/head
parent
20870b9004
commit
a1410ae7ad
1
exec.go
1
exec.go
|
@ -152,6 +152,7 @@ func reprompt(input string) (string, error) {
|
||||||
for {
|
for {
|
||||||
in, err := continuePrompt(strings.TrimSuffix(input, "\\"))
|
in, err := continuePrompt(strings.TrimSuffix(input, "\\"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
lr.SetPrompt(fmtPrompt(prompt))
|
||||||
return input, err
|
return input, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue