|
Karsten Hopp |
f40199 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
f40199 |
Subject: patch 7.0.217
|
|
Karsten Hopp |
f40199 |
Fcc: outbox
|
|
Karsten Hopp |
f40199 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f40199 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f40199 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
f40199 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f40199 |
------------
|
|
Karsten Hopp |
f40199 |
|
|
Karsten Hopp |
f40199 |
Patch 7.0.217
|
|
Karsten Hopp |
f40199 |
Problem: This hangs when pressing "n": ":%s/\n/,\r/gc". (Ori Avtalion)
|
|
Karsten Hopp |
f40199 |
Solution: Set "skip_match" to advance to the next line.
|
|
Karsten Hopp |
f40199 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
f40199 |
|
|
Karsten Hopp |
f40199 |
|
|
Karsten Hopp |
f40199 |
*** ../vim-7.0.216/src/ex_cmds.c Tue Feb 27 16:51:07 2007
|
|
Karsten Hopp |
f40199 |
--- src/ex_cmds.c Thu Mar 15 21:31:35 2007
|
|
Karsten Hopp |
f40199 |
***************
|
|
Karsten Hopp |
f40199 |
*** 4677,4687 ****
|
|
Karsten Hopp |
f40199 |
/* For a multi-line match, put matchcol at the NUL at
|
|
Karsten Hopp |
f40199 |
* the end of the line and set nmatch to one, so that
|
|
Karsten Hopp |
f40199 |
* we continue looking for a match on the next line.
|
|
Karsten Hopp |
f40199 |
! * Avoids that ":s/\nB\@=//gc" get stuck. */
|
|
Karsten Hopp |
f40199 |
if (nmatch > 1)
|
|
Karsten Hopp |
f40199 |
{
|
|
Karsten Hopp |
f40199 |
matchcol = (colnr_T)STRLEN(sub_firstline);
|
|
Karsten Hopp |
f40199 |
! nmatch = 1;
|
|
Karsten Hopp |
f40199 |
}
|
|
Karsten Hopp |
f40199 |
goto skip;
|
|
Karsten Hopp |
f40199 |
}
|
|
Karsten Hopp |
f40199 |
--- 4677,4688 ----
|
|
Karsten Hopp |
f40199 |
/* For a multi-line match, put matchcol at the NUL at
|
|
Karsten Hopp |
f40199 |
* the end of the line and set nmatch to one, so that
|
|
Karsten Hopp |
f40199 |
* we continue looking for a match on the next line.
|
|
Karsten Hopp |
f40199 |
! * Avoids that ":%s/\nB\@=//gc" and ":%s/\n/,\r/gc"
|
|
Karsten Hopp |
f40199 |
! * get stuck when pressing 'n'. */
|
|
Karsten Hopp |
f40199 |
if (nmatch > 1)
|
|
Karsten Hopp |
f40199 |
{
|
|
Karsten Hopp |
f40199 |
matchcol = (colnr_T)STRLEN(sub_firstline);
|
|
Karsten Hopp |
f40199 |
! skip_match = TRUE;
|
|
Karsten Hopp |
f40199 |
}
|
|
Karsten Hopp |
f40199 |
goto skip;
|
|
Karsten Hopp |
f40199 |
}
|
|
Karsten Hopp |
f40199 |
*** ../vim-7.0.216/src/version.c Sun Mar 11 15:53:27 2007
|
|
Karsten Hopp |
f40199 |
--- src/version.c Thu Mar 15 21:36:34 2007
|
|
Karsten Hopp |
f40199 |
***************
|
|
Karsten Hopp |
f40199 |
*** 668,669 ****
|
|
Karsten Hopp |
f40199 |
--- 668,671 ----
|
|
Karsten Hopp |
f40199 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f40199 |
+ /**/
|
|
Karsten Hopp |
f40199 |
+ 217,
|
|
Karsten Hopp |
f40199 |
/**/
|
|
Karsten Hopp |
f40199 |
|
|
Karsten Hopp |
f40199 |
--
|
|
Karsten Hopp |
f40199 |
A mathematician is a device for turning coffee into theorems.
|
|
Karsten Hopp |
f40199 |
Paul Erdos
|
|
Karsten Hopp |
f40199 |
A computer programmer is a device for turning coffee into bugs.
|
|
Karsten Hopp |
f40199 |
Bram Moolenaar
|
|
Karsten Hopp |
f40199 |
|
|
Karsten Hopp |
f40199 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f40199 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f40199 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
f40199 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|