99b86a7
To: vim-dev@vim.org
99b86a7
Subject: Patch 7.1.198
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.198
99b86a7
Problem:    Hang when using ":s/\n//gn". (Burak Gorkemli)
99b86a7
Solution:   Set "skip_match".
99b86a7
Files:	    src/ex_cmds.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.197/src/ex_cmds.c	Wed Jan  2 13:58:17 2008
99b86a7
--- src/ex_cmds.c	Fri Jan  4 14:46:34 2008
99b86a7
***************
99b86a7
*** 4575,4580 ****
99b86a7
--- 4575,4581 ----
99b86a7
  		    {
99b86a7
  			matchcol = (colnr_T)STRLEN(sub_firstline);
99b86a7
  			nmatch = 1;
99b86a7
+ 			skip_match = TRUE;
99b86a7
  		    }
99b86a7
  		    sub_nsubs++;
99b86a7
  		    did_sub = TRUE;
99b86a7
*** ../vim-7.1.197/src/version.c	Fri Jan  4 11:54:11 2008
99b86a7
--- src/version.c	Fri Jan  4 14:52:09 2008
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     198,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
    [clop clop]
99b86a7
ARTHUR:  Old woman!
99b86a7
DENNIS:  Man!
99b86a7
ARTHUR:  Man, sorry.  What knight lives in that castle over there?
99b86a7
DENNIS:  I'm thirty seven.
99b86a7
ARTHUR:  What?
99b86a7
DENNIS:  I'm thirty seven -- I'm not old!
99b86a7
                                  The Quest for the Holy Grail (Monty Python)
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///