Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Prevent extra character on handled meta keystrokes (#14151)
Denis Washington6db0b6c5ad8f
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rsindex 7b9a5e44347..788e0575813 100644--- a/crates/terminal_view/src/terminal_view.rs+++ b/crates/terminal_view/src/terminal_view.rs@@ -864,10 +864,13 @@ impl TerminalView {self.pause_cursor_blinking(cx);self.terminal.update(cx, |term, cx| {- term.try_keystroke(+ let handled = term.try_keystroke(&event.keystroke,TerminalSettings::get_global(cx).option_as_meta,- )+ );+ if handled {+ cx.stop_propagation();+ }});}