vim-patch:8.1.0535: increment/decrement might get interrupted by updating folds

Problem:    Increment/decrement might get interrupted by updating folds.
Solution:   Disable fold updating for a moment. (Christian Brabandt,
            closes vim/vim#3599)
6b731886ca
This commit is contained in:
zeertzjq
2022-05-21 21:41:12 +08:00
parent 1f1a65a9e4
commit a1df7c5771
3 changed files with 12 additions and 1 deletions

View File

@@ -775,7 +775,7 @@ void clearFolding(win_T *win)
/// The changes in lines from top to bot (inclusive).
void foldUpdate(win_T *wp, linenr_T top, linenr_T bot)
{
if (compl_busy || State & MODE_INSERT) {
if (disable_fold_update || compl_busy || State & MODE_INSERT) {
return;
}