mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
return early if soft wrap is invalid (#6856)
This commit is contained in:
parent
228a4af35f
commit
61ff2bc094
@ -62,7 +62,7 @@ pub fn move_vertically_visual(
|
|||||||
annotations: &mut TextAnnotations,
|
annotations: &mut TextAnnotations,
|
||||||
) -> Range {
|
) -> Range {
|
||||||
if !text_fmt.soft_wrap {
|
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();
|
annotations.clear_line_annotations();
|
||||||
let pos = range.cursor(slice);
|
let pos = range.cursor(slice);
|
||||||
|
Loading…
Reference in New Issue
Block a user