aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-25 09:22:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-25 10:15:07 +0800
commitb1833bb33b49a26e7552548e3541ac1480fee452 (patch)
tree0eb53db012b149e0db32770473187f2bec10ce76 /src/nvim/fold.c
parent45d09b46cebe928693f708b777e8b11ad6ec2602 (diff)
downloadrneovim-b1833bb33b49a26e7552548e3541ac1480fee452.tar.gz
rneovim-b1833bb33b49a26e7552548e3541ac1480fee452.tar.bz2
rneovim-b1833bb33b49a26e7552548e3541ac1480fee452.zip
vim-patch:partial:8.2.4001: insert complete code uses global variables
Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes vim/vim#9470) https://github.com/vim/vim/commit/d94fbfc74a8b8073e7a256c95fa6f39fc527c726 Skip changes in comments for callback-related functions (not ported). Also make compl_busy static again.
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 66f45e57f3..9cc17acb37 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -757,7 +757,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 (disable_fold_update || compl_busy || State & MODE_INSERT) {
+ if (disable_fold_update || State & MODE_INSERT) {
return;
}