aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 13329040e1..bdf2e26ac6 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -771,7 +771,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 || State & MODE_INSERT) {
+ if (disable_fold_update || (State & MODE_INSERT && !foldmethodIsIndent(wp))) {
return;
}