summaryrefslogtreecommitdiffstats
path: root/src/fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fold.c b/src/fold.c
index 07b0748634..5e67dd2e6d 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -858,7 +858,14 @@ foldUpdate(wp, top, bot)
|| foldmethodIsDiff(wp)
#endif
|| foldmethodIsSyntax(wp))
+ {
+ int save_got_int = got_int;
+
+ /* reset got_int here, otherwise it won't work */
+ got_int = FALSE;
foldUpdateIEMS(wp, top, bot);
+ got_int |= save_got_int;
+ }
}
/* foldUpdateAll() {{{2 */