Fix off by 1 error when computing available key bindings

This commit is contained in:
Mikayla 2024-01-08 17:30:24 -08:00
parent ec7db3f528
commit 0684369734
No known key found for this signature in database

View File

@ -192,8 +192,8 @@ impl DispatchTree {
keymap
.bindings_for_action(action)
.filter(|binding| {
for i in 1..context_stack.len() {
let context = &context_stack[0..i];
for i in 0..context_stack.len() {
let context = &context_stack[0..=i];
if keymap.binding_enabled(binding, context) {
return true;
}