mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user