return early if soft wrap is invalid (#6856)
This commit is contained in:
parent
228a4af35f
commit
61ff2bc094
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ pub fn move_vertically_visual(
|
|||
annotations: &mut TextAnnotations,
|
||||
) -> Range {
|
||||
if !text_fmt.soft_wrap {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue