Work on tests

This commit is contained in:
Conrad Irwin
2024-01-21 22:00:35 -07:00
parent 9d261cf859
commit 4143d3a36e
10 changed files with 181 additions and 35 deletions
+3 -3
View File
@@ -277,7 +277,7 @@ impl DispatchTree {
keystroke: &Keystroke,
dispatch_path: &SmallVec<[DispatchNodeId; 32]>,
) -> KeymatchResult {
let mut actions = SmallVec::new();
let mut bindings = SmallVec::new();
let mut pending = false;
let mut context_stack: SmallVec<[KeyContext; 4]> = SmallVec::new();
@@ -297,11 +297,11 @@ impl DispatchTree {
let mut result = keystroke_matcher.match_keystroke(keystroke, &context_stack);
pending = result.pending || pending;
actions.append(&mut result.actions);
bindings.append(&mut result.bindings);
context_stack.pop();
}
KeymatchResult { actions, pending }
KeymatchResult { bindings, pending }
}
pub fn has_pending_keystrokes(&self) -> bool {