mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.1947: crash when using "zj" without folds
Problem: Crash when using "zj" without folds. (Sean Dewar) Solution: Check for at least one fold. (closes #7245)
This commit is contained in:
@@ -902,6 +902,8 @@ foldMoveTo(
|
||||
// that moves the cursor is used.
|
||||
lnum_off = 0;
|
||||
gap = &curwin->w_folds;
|
||||
if (gap->ga_len == 0)
|
||||
break;
|
||||
use_level = FALSE;
|
||||
maybe_small = FALSE;
|
||||
lnum_found = curwin->w_cursor.lnum;
|
||||
|
Reference in New Issue
Block a user