Skip to content

Commit

Permalink
Let Esc also cancel block edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Sep 6, 2024
1 parent a4cdbdc commit a7dad0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v2/keyloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber
}
fallthrough // nano: ctrl-l to refresh
case "c:27": // esc, clear search term (but not the sticky search term), reset, clean and redraw
e.blockMode = false
// If o is used as a man page viewer, exit at the press of esc
if e.mode == mode.ManPage {
e.clearOnQuit = false
Expand Down

0 comments on commit a7dad0b

Please sign in to comment.