From 36a7a18316580864f2f2ebd79e9ddae4858f6b60 Mon Sep 17 00:00:00 2001 From: SeekingBlues <51911626+SeekingBlues@users.noreply.github.com> Date: Sat, 21 May 2022 06:54:17 -0400 Subject: [PATCH] Go to normal mode when backspacing on empty prompt (#836) This matches up with vim's behavior. --- eval.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eval.go b/eval.go index 77de689..53191b4 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]