From 38ab0e21b826579759d4f01285ea0a43e85d5c1c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 13 May 2010 17:35:59 +0200 Subject: 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) --- src/normal.c | 6 ++++-- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/normal.c b/src/normal.c index 1b514b36f..a19771b4f 100644 --- a/src/normal.c +++ b/src/normal.c @@ -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 */ diff --git a/src/version.c b/src/version.c index 453a23b42..1f57dd7f6 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 421, /**/ 420, /**/ -- cgit v1.2.1