0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0-217

This commit is contained in:
Bram Moolenaar
2007-03-15 20:38:26 +00:00
parent d326ce83d5
commit c432b50937
2 changed files with 5 additions and 2 deletions

View File

@@ -4677,11 +4677,12 @@ do_sub(eap)
/* For a multi-line match, put matchcol at the NUL at
* the end of the line and set nmatch to one, so that
* we continue looking for a match on the next line.
* Avoids that ":s/\nB\@=//gc" get stuck. */
* Avoids that ":%s/\nB\@=//gc" and ":%s/\n/,\r/gc"
* get stuck when pressing 'n'. */
if (nmatch > 1)
{
matchcol = (colnr_T)STRLEN(sub_firstline);
nmatch = 1;
skip_match = TRUE;
}
goto skip;
}