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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user