From a1410ae7ad259a6f7e1f42f48060c82bb4fb017f Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 30 Aug 2022 21:52:07 -0400 Subject: [PATCH] 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 --- exec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exec.go b/exec.go index d605a4e..dcf8845 100644 --- a/exec.go +++ b/exec.go @@ -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 }