|
|
@ -64,7 +64,6 @@ pub fn move_vertically_visual(
|
|
|
|
if !text_fmt.soft_wrap {
|
|
|
|
if !text_fmt.soft_wrap {
|
|
|
|
return move_vertically(slice, range, dir, count, behaviour, text_fmt, annotations);
|
|
|
|
return move_vertically(slice, range, dir, count, behaviour, text_fmt, annotations);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
annotations.clear_line_annotations();
|
|
|
|
|
|
|
|
let pos = range.cursor(slice);
|
|
|
|
let pos = range.cursor(slice);
|
|
|
|
|
|
|
|
|
|
|
|
// Compute the current position's 2d coordinates.
|
|
|
|
// Compute the current position's 2d coordinates.
|
|
|
@ -112,7 +111,6 @@ pub fn move_vertically(
|
|
|
|
text_fmt: &TextFormat,
|
|
|
|
text_fmt: &TextFormat,
|
|
|
|
annotations: &mut TextAnnotations,
|
|
|
|
annotations: &mut TextAnnotations,
|
|
|
|
) -> Range {
|
|
|
|
) -> Range {
|
|
|
|
annotations.clear_line_annotations();
|
|
|
|
|
|
|
|
let pos = range.cursor(slice);
|
|
|
|
let pos = range.cursor(slice);
|
|
|
|
let line_idx = slice.char_to_line(pos);
|
|
|
|
let line_idx = slice.char_to_line(pos);
|
|
|
|
let line_start = slice.line_to_char(line_idx);
|
|
|
|
let line_start = slice.line_to_char(line_idx);
|
|
|
|