From dac5f351f50b912ff7a16064ac52b2e9f5ee7fb6 Mon Sep 17 00:00:00 2001 From: SeekingBlues Date: Tue, 17 May 2022 17:02:09 -0400 Subject: [PATCH] Go to normal mode when backspacing on empty prompt This matches up with vim's behavior. --- eval.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eval.go b/eval.go index 77de6891..53191b46 100644 --- a/eval.go +++ b/eval.go @@ -1916,6 +1916,7 @@ func (e *callExpr) eval(app *app, args []string) { update(app) case "cmd-delete-back": if len(app.ui.cmdAccLeft) == 0 { + normal(app) return } app.ui.cmdAccLeft = app.ui.cmdAccLeft[:len(app.ui.cmdAccLeft)-1]