Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix bracketed paste in terminal on middle click (#52158)
Bryan Mehall6d09eded7911
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 2ff689972a2..b620f5f03c2 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -1949,7 +1949,7 @@ impl Terminal {MouseButton::Middle => {if let Some(item) = _cx.read_from_primary() {let text = item.text().unwrap_or_default();- self.input(text.into_bytes());+ self.paste(&text);}}_ => {}