diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 53974e5..b80aff0 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -652,6 +652,7 @@ impl<'ws> Workspace<'ws> { match key.code { KeyCode::Esc => { self.state.reset_n_prefix(); + self.state.char_queue.clear(); } KeyCode::Char(d) if d.is_ascii_digit() => { self.handle_numeric_prefix(d); @@ -727,12 +728,6 @@ impl<'ws> Workspace<'ws> { Ok(()) })?; } - KeyCode::Char('s') - if key.modifiers == KeyModifiers::HYPER - || key.modifiers == KeyModifiers::SUPER => - { - self.save_file()?; - } KeyCode::Char('l') if key.modifiers == KeyModifiers::CONTROL => { self.run_with_prefix(|ws: &mut Workspace<'_>| -> Result<()> { let Address { row: _, col } = &ws.book.location;