diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-13 17:35:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-13 17:35:59 +0200 |
commit | 38ab0e21b826579759d4f01285ea0a43e85d5c1c (patch) | |
tree | f4a98a2aba5163a80fb4170492c63a4aad742fde /src | |
parent | eb4883fabcb728df01e33054de987a752ef5482e (diff) | |
download | vim-git-38ab0e21b826579759d4f01285ea0a43e85d5c1c.tar.gz |
updated for version 7.2.421v7.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)
Diffstat (limited to 'src')
-rw-r--r-- | src/normal.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 2 deletions
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 @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 421, +/**/ 420, /**/ 419, |