on master help sign in
return early if soft wrap is invalid (#6856)
commit61ff2bc0941be0ca99f34d8ba013978356612caf authorymgyt <yamaguchi7073xtt@gmail.com> dateSun 23 Apr 2023, 22:24 (4 years ago) parent228a4af
1 file changed+1−1
helix-core/src/movement.rs+1−1
helix-core/src/movement.rs+1−1
@@ -62,7 +62,7 @@ pub fn move_vertically_visual(
6262 annotations: &mut TextAnnotations,
6363) -> Range {
6464 if !text_fmt.soft_wrap {
65− move_vertically(slice, range, dir, count, behaviour, text_fmt, annotations);
65+ return move_vertically(slice, range, dir, count, behaviour, text_fmt, annotations);
6666 }
6767 annotations.clear_line_annotations();
6868 let pos = range.cursor(slice);