summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-10-14 13:33:20 +0000
committerBram Moolenaar <Bram@vim.org>2007-10-14 13:33:20 +0000
commitfa6d5afd8459cfcbed2d91e0280d6f7fb9fcdb18 (patch)
tree8c63849f7c361033d3708d9004c50a2315be78fe /src/fold.c
parentaa8494a13eb1f8b5eb4a417bb03e7bb5ea399c57 (diff)
downloadvim-git-fa6d5afd8459cfcbed2d91e0280d6f7fb9fcdb18.tar.gz
updated for version 7.1-139v7.1.139
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 07b074863..5e67dd2e6 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 */