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()?;