Karsten Hopp 6b58d9
To: vim-dev@vim.org
Karsten Hopp 6b58d9
Subject: Patch 7.2.409
Karsten Hopp 6b58d9
Fcc: outbox
Karsten Hopp 6b58d9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 6b58d9
Mime-Version: 1.0
Karsten Hopp 6b58d9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 6b58d9
Content-Transfer-Encoding: 8bit
Karsten Hopp 6b58d9
------------
Karsten Hopp 6b58d9
Karsten Hopp 6b58d9
Patch 7.2.409
Karsten Hopp 6b58d9
Problem:    Summary of number of substitutes is incorrect for ":folddo". (Jean
Karsten Hopp 6b58d9
	    Johner)
Karsten Hopp 6b58d9
Solution:   Reset sub_nsubs and sub_nlines in global_exe().
Karsten Hopp 6b58d9
Files:	    src/ex_cmds.c
Karsten Hopp 6b58d9
Karsten Hopp 6b58d9
Karsten Hopp 6b58d9
*** ../vim-7.2.408/src/ex_cmds.c	2010-03-23 17:36:24.000000000 +0100
Karsten Hopp 6b58d9
--- src/ex_cmds.c	2010-03-23 17:42:49.000000000 +0100
Karsten Hopp 6b58d9
***************
Karsten Hopp 6b58d9
*** 5238,5245 ****
Karsten Hopp 6b58d9
  	type = *eap->cmd;
Karsten Hopp 6b58d9
      cmd = eap->arg;
Karsten Hopp 6b58d9
      which_pat = RE_LAST;	    /* default: use last used regexp */
Karsten Hopp 6b58d9
-     sub_nsubs = 0;
Karsten Hopp 6b58d9
-     sub_nlines = 0;
Karsten Hopp 6b58d9
  
Karsten Hopp 6b58d9
      /*
Karsten Hopp 6b58d9
       * undocumented vi feature:
Karsten Hopp 6b58d9
--- 5238,5243 ----
Karsten Hopp 6b58d9
***************
Karsten Hopp 6b58d9
*** 5343,5348 ****
Karsten Hopp 6b58d9
--- 5341,5348 ----
Karsten Hopp 6b58d9
      /* When the command writes a message, don't overwrite the command. */
Karsten Hopp 6b58d9
      msg_didout = TRUE;
Karsten Hopp 6b58d9
  
Karsten Hopp 6b58d9
+     sub_nsubs = 0;
Karsten Hopp 6b58d9
+     sub_nlines = 0;
Karsten Hopp 6b58d9
      global_need_beginline = FALSE;
Karsten Hopp 6b58d9
      global_busy = 1;
Karsten Hopp 6b58d9
      old_lcount = curbuf->b_ml.ml_line_count;
Karsten Hopp 6b58d9
*** ../vim-7.2.408/src/version.c	2010-03-23 17:36:24.000000000 +0100
Karsten Hopp 6b58d9
--- src/version.c	2010-03-23 17:47:53.000000000 +0100
Karsten Hopp 6b58d9
***************
Karsten Hopp 6b58d9
*** 683,684 ****
Karsten Hopp 6b58d9
--- 683,686 ----
Karsten Hopp 6b58d9
  {   /* Add new patch number below this line */
Karsten Hopp 6b58d9
+ /**/
Karsten Hopp 6b58d9
+     409,
Karsten Hopp 6b58d9
  /**/
Karsten Hopp 6b58d9
Karsten Hopp 6b58d9
-- 
Karsten Hopp 6b58d9
BRIDGEKEEPER: What is your favorite colour?
Karsten Hopp 6b58d9
LAUNCELOT:    Blue.
Karsten Hopp 6b58d9
BRIDGEKEEPER: Right.  Off you go.
Karsten Hopp 6b58d9
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 6b58d9
Karsten Hopp 6b58d9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 6b58d9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 6b58d9
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 6b58d9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///