Problem: Crash when recreating nested fold.
Solution: Check for empty growarray. (closes #7278)
break;
}
}
- i = (int)(fp - (fold_T *)gap->ga_data);
+ if (gap->ga_len == 0)
+ i = 0;
+ else
+ i = (int)(fp - (fold_T *)gap->ga_data);
}
if (ga_grow(gap, 1) == OK)
bwipe!
endfunc
+" this was crashing
+func Test_fold_create_delete_create()
+ new
+ fold
+ fold
+ normal zd
+ fold
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1972,
/**/
1971,
/**/