Disallow exiting from 'filter' mode with backspace (#1269)

This commit is contained in:
Jonáš Dujava authored and GitHub committed 2023-06-04 16:14:19 +03:00
1 parent 9e1edcd9d3
commit 06d0a7eeac
1 file changed
+3 -2
+3 -2
View File
@@ -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)
}