]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.421 v7.2.421
authorBram Moolenaar <Bram@vim.org>
Thu, 13 May 2010 15:35:59 +0000 (17:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 13 May 2010 15:35:59 +0000 (17:35 +0200)
Problem:    Folds are sometimes not updated properly and there is no way to
            force an update.
Solution:   Make "zx" and "zX" recompute folds (suggested by Christian
            Brabandt)

src/normal.c
src/version.c

index 1b514b36f3e6c463b8426bd7d6df3dadfd7f5516..a19771b4fd3829e79096df84b98d3478c8764f9b 100644 (file)
@@ -4936,13 +4936,15 @@ dozet:
 
                /* "zx": re-apply 'foldlevel' and open folds at the cursor */
     case 'x':  curwin->w_p_fen = TRUE;
-               newFoldLevel();         /* update right now */
+               curwin->w_foldinvalid = TRUE;   /* recompute folds */
+               newFoldLevel();                 /* update right now */
                foldOpenCursor();
                break;
 
                /* "zX": undo manual opens/closes, re-apply 'foldlevel' */
     case 'X':  curwin->w_p_fen = TRUE;
-               old_fdl = -1;           /* force an update */
+               curwin->w_foldinvalid = TRUE;   /* recompute folds */
+               old_fdl = -1;                   /* force an update */
                break;
 
                /* "zm": fold more */
index 453a23b422bf8da1f8b4d80c0b18dcf72aef458f..1f57dd7f60257b53158f31c68965794d2d1602be 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    421,
 /**/
     420,
 /**/