aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-22 07:27:26 +0800
committerGitHub <noreply@github.com>2022-05-22 07:27:26 +0800
commitf0717ffade6a36c1e5aa85214f6667e384abc169 (patch)
tree64be896cd8b9db3e25bbe29fa7f416d6acc3ef43 /src/nvim/fold.c
parentcbf0360179fa5a5045005bc2be0b270f97f3bb23 (diff)
parentc3568b31f423b8af11be155f6fdb7b464a519fd2 (diff)
downloadrneovim-f0717ffade6a36c1e5aa85214f6667e384abc169.tar.gz
rneovim-f0717ffade6a36c1e5aa85214f6667e384abc169.tar.bz2
rneovim-f0717ffade6a36c1e5aa85214f6667e384abc169.zip
Merge pull request #18682 from zeertzjq/vim-8.1.0535
vim-patch:8.1.0535,8.2.4991: increment/decrement might get interrupted by updating folds
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 090f754e93..2de1b8b0f9 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -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;
}