diff src/fold.c @ 1424:9dbb57025f25 v7.1.139

updated for version 7.1-139
author vimboss
date Sun, 14 Oct 2007 13:33:20 +0000
parents edc1c9d6dab9
children 61709607f5e2
line wrap: on
line diff
--- 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 */