From 4a2830137f98f1e829784edb2eaa9455d78374fe Mon Sep 17 00:00:00 2001 From: Beh Date: Mon, 9 May 2022 23:57:49 +0200 Subject: [PATCH] Fuzzy: Clear everything on cancel via escape key --- src/prompts/fuzzy_select.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompts/fuzzy_select.rs b/src/prompts/fuzzy_select.rs index 3f43f911..06faf67e 100644 --- a/src/prompts/fuzzy_select.rs +++ b/src/prompts/fuzzy_select.rs @@ -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()?;