From 770a638d62314a94c90e54ac934f6c5821458425 Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Sat, 27 May 2023 01:18:36 +0200 Subject: [PATCH] Disallow exiting from 'filter' mode with backspace --- eval.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eval.go b/eval.go index 0ddf107f..725b679b 100644 --- a/eval.go +++ b/eval.go @@ -2347,9 +2347,10 @@ func (e *callExpr) eval(app *app, args []string) { switch app.ui.cmdPrefix { case "!", "$", "%", "&": app.ui.cmdPrefix = ":" - case ">", "rename: ": + case ">", "rename: ", "filter: ": // Don't mess with programs waiting for input. - // Exiting on backspace is also inconvenient for renames since the text field starts out nonempty. + // Exiting on backspace is also inconvenient for 'rename' and 'filter', + // since the text field can start out nonempty. default: normal(app) }