Skip to content

Commit

Permalink
reverse-search: add keys for disabling
Browse files Browse the repository at this point in the history
Now, reverse-search can be disabled with emacs
"Left" and "Right" keys: `Ctrl-B`, `Ctrl-F`.
  • Loading branch information
askalt committed Jul 18, 2023
1 parent 898ae77 commit def9356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (p *Prompt) feed(b []byte) (shouldExit bool, exec *Exec) {
p.buf = newBuf
}
}
case Down, ControlN:
case Down, ControlN, ControlB, ControlF:
if p.inReverseSearchMode() {
p.disableReverseSearch()
} else if !completing { // Don't use p.completion.Completing() because it takes double
Expand Down

0 comments on commit def9356

Please sign in to comment.