Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

I was soooo close

Conrad Irwin79773178c836
diff --git a/crates/gpui2/src/key_dispatch.rs b/crates/gpui2/src/key_dispatch.rs
index 95915b98ed3..4838b1a612c 100644
--- a/crates/gpui2/src/key_dispatch.rs
+++ b/crates/gpui2/src/key_dispatch.rs
@@ -176,7 +176,7 @@ impl DispatchTree {
return false;
}
for i in 1..context_stack.len() {
- if candidate.matches_context(&context_stack[0..i]) {
+ if candidate.matches_context(&context_stack[0..=i]) {
return true;
}
}