From 044aa290c5f20afc871629acec9aae0dae367a01 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Jun 2013 21:27:38 +0200 Subject: updated for version 7.3.1113 Problem: New regexp engine: \%'m not supported. Solution: Implement \%'m. Add tests. --- src/regexp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/regexp.c') diff --git a/src/regexp.c b/src/regexp.c index b0c8a2192..3450f3aa9 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -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 == '>') -- cgit v1.2.1