]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-085 v7.1.085
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Aug 2007 13:29:28 +0000 (13:29 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Aug 2007 13:29:28 +0000 (13:29 +0000)
src/ex_cmds.c
src/version.c

index 1b2672fd284e846a7bb64a90e35b7cd65098fca1..958f3abd3952497735a260d9094cde28280f7ea3 100644 (file)
@@ -2974,7 +2974,7 @@ check_readonly(forceit, buf)
  * 'fnum' is the number of the file, if zero use ffname/sfname.
  *
  * Return 1 for "normal" error, 2 for "not written" error, 0 for success
- * -1 for succesfully opening another file.
+ * -1 for successfully opening another file.
  * 'lnum' is the line number for the cursor in the new file (if non-zero).
  */
     int
@@ -3584,9 +3584,20 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
        curwin_init();
 
 #ifdef FEAT_FOLDING
-       /* It's like all lines in the buffer changed.  Need to update
-        * automatic folding. */
+       /* It's possible that all lines in the buffer changed.  Need to update
+        * automatic folding for all windows where it's used. */
+# ifdef FEAT_WINDOWS
+       {
+           win_T           *win;
+           tabpage_T       *tp;
+
+           FOR_ALL_TAB_WINDOWS(tp, win)
+               if (win->w_buffer == curbuf)
+                   foldUpdateAll(win);
+       }
+# else
        foldUpdateAll(curwin);
+# endif
 #endif
 
        /* Change directories when the 'acd' option is set. */
index 2b04ff4365ba1c51e4bc6d81b672f32f290abc16..21f7237e2f6f1de5affd199ff4f7f7957c1ecd40 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    85,
 /**/
     84,
 /**/