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.

terminal: Handle shift+click selection (#25143)

smit48417866ccaf
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs
index ec95fa1aca8..e87333ba0cc 100644
--- a/crates/terminal/src/terminal.rs
+++ b/crates/terminal/src/terminal.rs
@@ -1512,6 +1512,12 @@ impl Terminal {
_ => None,
};
+ if selection_type == Some(SelectionType::Simple) && e.modifiers.shift {
+ self.events
+ .push_back(InternalEvent::UpdateSelection(position));
+ return;
+ }
+
let selection = selection_type
.map(|selection_type| Selection::new(selection_type, point, side));