1
0
forked from aniani/vim

updated for version 7.3.1113

Problem:    New regexp engine: \%'m not supported.
Solution:   Implement \%'m.  Add tests.
This commit is contained in:
Bram Moolenaar
2013-06-04 21:27:38 +02:00
parent dacd7de3fd
commit 044aa290c5
5 changed files with 80 additions and 10 deletions

View File

@@ -4401,8 +4401,7 @@ regmatch(scan)
break;
case RE_MARK:
/* Compare the mark position to the match position. NOTE: Always
* uses the current buffer. */
/* Compare the mark position to the match position. */
{
int mark = OPERAND(scan)[0];
int cmp = OPERAND(scan)[1];
@@ -4410,7 +4409,7 @@ regmatch(scan)
pos = getmark_buf(reg_buf, mark, FALSE);
if (pos == NULL /* mark doesn't exist */
|| pos->lnum <= 0 /* mark isn't set (in curbuf) */
|| pos->lnum <= 0 /* mark isn't set in reg_buf */
|| (pos->lnum == reglnum + reg_firstlnum
? (pos->col == (colnr_T)(reginput - regline)
? (cmp == '<' || cmp == '>')