components/vim/vim72-patches/7.2.421
changeset 198 172fc01ce997
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/vim/vim72-patches/7.2.421	Thu Apr 07 16:25:07 2011 -0700
@@ -0,0 +1,68 @@
+To: [email protected]
+Subject: Patch 7.2.421
+Fcc: outbox
+From: Bram Moolenaar <[email protected]>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 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)
+Files:	    src/normal.c
+
+
+*** ../vim-7.2.420/src/normal.c	2010-05-07 15:51:59.000000000 +0200
+--- src/normal.c	2010-05-13 16:43:05.000000000 +0200
+***************
+*** 4936,4948 ****
+  
+  		/* "zx": re-apply 'foldlevel' and open folds at the cursor */
+      case 'x':	curwin->w_p_fen = TRUE;
+! 		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 */
+  		break;
+  
+  		/* "zm": fold more */
+--- 4936,4950 ----
+  
+  		/* "zx": re-apply 'foldlevel' and open folds at the cursor */
+      case 'x':	curwin->w_p_fen = TRUE;
+! 		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;
+! 		curwin->w_foldinvalid = TRUE;	/* recompute folds */
+! 		old_fdl = -1;			/* force an update */
+  		break;
+  
+  		/* "zm": fold more */
+*** ../vim-7.2.420/src/version.c	2010-05-13 16:46:16.000000000 +0200
+--- src/version.c	2010-05-13 17:33:34.000000000 +0200
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     421,
+  /**/
+
+-- 
+My sister Cecilia opened a computer store in Hawaii.
+She sells C shells by the seashore.
+
+ /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///