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.

Fix `jk` not working in Vim bindings (#8023)

Thorsten Ball0a5df7d597bc
diff --git a/crates/gpui/src/platform.rs b/crates/gpui/src/platform.rs
index cf3ded12857..de39ef61cc9 100644
--- a/crates/gpui/src/platform.rs
+++ b/crates/gpui/src/platform.rs
@@ -413,10 +413,7 @@ impl PlatformInputHandler {
}
pub(crate) fn flush_pending_input(&mut self, input: &str, cx: &mut WindowContext) {
- let Some(range) = self.handler.selected_text_range(cx) else {
- return;
- };
- self.handler.replace_text_in_range(Some(range), input, cx);
+ self.handler.replace_text_in_range(None, input, cx);
}
}