Skip to content

Commit

Permalink
Disallow exiting from 'filter' mode with backspace (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdujava authored Jun 4, 2023
1 parent 9e1edcd commit 06d0a7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 06d0a7e

Please sign in to comment.