mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
eb4883fabc
commit
38ab0e21b8
@ -4936,12 +4936,14 @@ dozet:
|
|||||||
|
|
||||||
/* "zx": re-apply 'foldlevel' and open folds at the cursor */
|
/* "zx": re-apply 'foldlevel' and open folds at the cursor */
|
||||||
case 'x': curwin->w_p_fen = TRUE;
|
case 'x': curwin->w_p_fen = TRUE;
|
||||||
|
curwin->w_foldinvalid = TRUE; /* recompute folds */
|
||||||
newFoldLevel(); /* update right now */
|
newFoldLevel(); /* update right now */
|
||||||
foldOpenCursor();
|
foldOpenCursor();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* "zX": undo manual opens/closes, re-apply 'foldlevel' */
|
/* "zX": undo manual opens/closes, re-apply 'foldlevel' */
|
||||||
case 'X': curwin->w_p_fen = TRUE;
|
case 'X': curwin->w_p_fen = TRUE;
|
||||||
|
curwin->w_foldinvalid = TRUE; /* recompute folds */
|
||||||
old_fdl = -1; /* force an update */
|
old_fdl = -1; /* force an update */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -681,6 +681,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
421,
|
||||||
/**/
|
/**/
|
||||||
420,
|
420,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user