Disallow exiting from 'filter' mode with backspace (#1269)
This commit is contained in:
1 parent
9e1edcd9d3
commit
06d0a7eeac
1 file changed
+3
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user