mirror of https://github.com/Hilbis/Hilbish
fix: change prompt back to user's prompt on contine prompt exit
parent
4da82e872c
commit
92d0e195ab
2
main.go
2
main.go
|
@ -198,6 +198,8 @@ input:
|
||||||
for {
|
for {
|
||||||
input, err = continuePrompt(input)
|
input, err = continuePrompt(input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
running = true
|
||||||
|
lr.SetPrompt(fmtPrompt(prompt))
|
||||||
goto input // continue inside nested loop
|
goto input // continue inside nested loop
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(input, "\\") {
|
if !strings.HasSuffix(input, "\\") {
|
||||||
|
|
Loading…
Reference in New Issue