mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 16:14:02 +03:00
Fix off by 1 error when computing available key bindings
This commit is contained in:
parent
ec7db3f528
commit
0684369734
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user