Skip to content

Commit

Permalink
Fuzzy: Clear everything on cancel via escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
deg0nz committed May 9, 2022
1 parent 3f16bde commit 4a28301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompts/fuzzy_select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl FuzzySelect<'_> {
match term.read_key()? {
Key::Escape if allow_quit => {
if self.clear {
term.clear_last_lines(filtered_list.len())?;
render.clear()?;
term.flush()?;
}
term.show_cursor()?;
Expand Down

0 comments on commit 4a28301

Please sign in to comment.