Skip to content

Commit 4165fcb

Browse files
committed
Change quit key for vim mode in FuzzySelect
Change the quit key to be 'q' instead of Escape.
1 parent 21c875f commit 4165fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prompts/fuzzy_select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl FuzzySelect<'_> {
258258
(Key::Escape, _, false) if self.enable_vim_mode => {
259259
vim_mode = true;
260260
}
261-
(Key::Escape, _, _) if allow_quit => {
261+
(Key::Escape, _, false) | (Key::Char('q'), _, true) if allow_quit => {
262262
if self.clear {
263263
render.clear()?;
264264
term.flush()?;

0 commit comments

Comments
 (0)