mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
fix: copy_selections was broken with selections (not cursors)
This commit is contained in:
parent
924462edda
commit
236c6b7707
@ -1392,7 +1392,8 @@ fn copy_selection_on_line(cx: &mut Context, direction: Direction) {
|
||||
if is_primary {
|
||||
primary_index = ranges.len();
|
||||
}
|
||||
ranges.push(Range::new(anchor, head));
|
||||
// This is Range::new(anchor, head), but it will place the cursor on the correct column
|
||||
ranges.push(Range::point(anchor).put_cursor(text, head, true));
|
||||
sels += 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user