mirror of
https://github.com/wez/wezterm.git
synced 2024-08-16 09:40:34 +03:00
Start line selection at 0th cell
Starting line selection at 0th cell allows line selection to be extended using Shift+Mouse without breaking the selection start. This mostly happens when selecting a line then scrolling down and extending the selection.
This commit is contained in:
parent
073d522083
commit
a8ef9af6b5
@ -247,7 +247,7 @@ impl super::TermWindow {
|
||||
};
|
||||
match mode {
|
||||
SelectionMode::Line => {
|
||||
let start = SelectionCoordinate::x_y(x, y);
|
||||
let start = SelectionCoordinate::x_y(0, y);
|
||||
let selection_range = SelectionRange::line_around(start, &**pane);
|
||||
|
||||
self.selection(pane.pane_id()).origin = Some(start);
|
||||
|
Loading…
Reference in New Issue
Block a user