mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:8.2.1554: crash in normal test
Problem: Crash in normal test.
Solution: Skip adjusting marks if there are no folds.
07e87e9eb5
This commit is contained in:
@@ -1389,6 +1389,10 @@ static void 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)
|
||||||
|
Reference in New Issue
Block a user