Problem: Crash with a sequence of fold commands.
Solution: Bail out when there are no folds at all. Add a test (Dominique
Pellé) (closes #7515)
{
if (!foldFind(gap, curwin->w_cursor.lnum - lnum_off, &fp))
{
- if (!updown)
+ if (!updown || gap->ga_len == 0)
break;
// When moving up, consider a fold above the cursor; when
bwipe!
endfunc
+" this was crashing
+func Test_fold_create_delete()
+ new
+ norm zFzFzdzj
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2176,
/**/
2175,
/**/