0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.1196

Problem:    Old regexp engine does not match pattern with backref correctly.
            (Dominique Pelle)
Solution:   Fix setting status.  Test multi-line patterns better.
This commit is contained in:
Bram Moolenaar
2013-06-15 15:09:50 +02:00
parent 4cff8faf05
commit 141f6bb341
4 changed files with 67 additions and 59 deletions

View File

@@ -5021,12 +5021,15 @@ regmatch(scan)
{
/* Messy situation: Need to compare between two
* lines. */
status = match_with_backref(
int r = match_with_backref(
reg_startpos[no].lnum,
reg_startpos[no].col,
reg_endpos[no].lnum,
reg_endpos[no].col,
&len);
if (r != RA_MATCH)
status = r;
}
}
}