Clear pending keystrokes after dispatching an action

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-12-03 17:59:46 +01:00
parent 0e93bc41dd
commit 3426d46b69
2 changed files with 5 additions and 0 deletions

View file

@ -93,6 +93,10 @@ impl Matcher {
self.keymap.add_bindings(bindings);
}
pub fn clear_pending(&mut self) {
self.pending.clear();
}
pub fn push_keystroke(
&mut self,
keystroke: Keystroke,