summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-04 21:27:38 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-04 21:27:38 +0200
commit044aa290c5f20afc871629acec9aae0dae367a01 (patch)
tree68cc369d96fea98e87d6a24cb4f14a1d95beebcb /src/regexp.c
parentdacd7de3fd5edd8f3a41ba3c9c389b653b6a9e5d (diff)
downloadvim-git-044aa290c5f20afc871629acec9aae0dae367a01.tar.gz
updated for version 7.3.1113v7.3.1113
Problem: New regexp engine: \%'m not supported. Solution: Implement \%'m. Add tests.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c5
1 files changed, 2 insertions, 3 deletions
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 == '>')