updated for version 7.2.421

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)
This commit is contained in:
Bram Moolenaar
2010-05-13 17:35:59 +02:00
parent 61eb14a1a9
commit eefdd2aa79
2 changed files with 6 additions and 2 deletions
+4 -2
View 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 */
+2
View File
@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
421,
/**/
420,
/**/