mirror of
https://github.com/vim/vim.git
synced 2025-09-05 21:43:39 -04:00
patch 8.2.1554: crash in normal test
Problem: Crash in normal test. Solution: Skip adjusting marks if there are no folds.
This commit is contained in:
parent
2c93c685e3
commit
07e87e9eb5
@ -1515,6 +1515,9 @@ foldMarkAdjustRecurse(
|
|||||||
linenr_T last;
|
linenr_T last;
|
||||||
linenr_T top;
|
linenr_T top;
|
||||||
|
|
||||||
|
if (gap->ga_len == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// In Insert mode an inserted line at the top of a fold is considered part
|
// In Insert mode an inserted line at the top of a fold is considered part
|
||||||
// of the fold, otherwise it isn't.
|
// of the fold, otherwise it isn't.
|
||||||
if ((State & INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
|
if ((State & INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1554,
|
||||||
/**/
|
/**/
|
||||||
1553,
|
1553,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user