mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
TEMP
This commit is contained in:
parent
645c149344
commit
5f6535e92b
@ -865,6 +865,7 @@ impl EditorElement {
|
||||
layout.position_map.snapshot.line_len(cursor_row) as usize;
|
||||
}
|
||||
}
|
||||
dbg!(selection.head, cursor_row, cursor_column);
|
||||
|
||||
if layout.visible_display_row_range.contains(&cursor_row) {
|
||||
let cursor_row_layout = &layout.position_map.line_layouts
|
||||
|
@ -67,7 +67,9 @@ pub fn visual_motion(motion: Motion, times: Option<usize>, cx: &mut WindowContex
|
||||
|
||||
// ensure the current character is included in the selection.
|
||||
if !selection.reversed {
|
||||
// TODO: maybe try clipping left for multi-buffers
|
||||
let next_point = movement::right(map, selection.end);
|
||||
|
||||
if !(next_point.column() == 0 && next_point == map.max_point()) {
|
||||
selection.end = movement::right(map, selection.end)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user