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 bind
cancel-commander
TorchedSammy 2022-08-30 21:52:07 -04:00
parent 20870b9004
commit a1410ae7ad
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ func reprompt(input string) (string, error) {
for {
in, err := continuePrompt(strings.TrimSuffix(input, "\\"))
if err != nil {
lr.SetPrompt(fmtPrompt(prompt))
return input, err
}