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

@@ -23,6 +23,7 @@ typedef struct foldinfo {
#define FOLDINFO_INIT { 0, 0, 0, 0 }
EXTERN int disable_fold_update INIT(= 0);
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "fold.h.generated.h"