From 06d0a7eeac75fb6d18e73367e6851028ac0885f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Dujava?= <19737748+jdujava@users.noreply.github.com> Date: Sun, 4 Jun 2023 15:14:19 +0200 Subject: [PATCH] Disallow exiting from 'filter' mode with backspace (#1269) --- eval.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eval.go b/eval.go index eb6d4748..81b9267e 100644 --- a/eval.go +++ b/eval.go @@ -2343,9 +2343,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) }