diff options
author | ymgyt | 2023-04-23 13:24:17 +0000 |
---|---|---|
committer | GitHub | 2023-04-23 13:24:17 +0000 |
commit | 61ff2bc0941be0ca99f34d8ba013978356612caf (patch) | |
tree | cf5a59608c2a7acb6ab66154cddd81e1eb5b82e9 /helix-core/src/movement.rs | |
parent | 228a4af35fec3be633c31ecbbdf0b6f7bb7a9fcd (diff) |
return early if soft wrap is invalid (#6856)
Diffstat (limited to 'helix-core/src/movement.rs')
-rw-r--r-- | helix-core/src/movement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index 60af47e5..b44d149f 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -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); |