Skip to content

Commit f33715c

Browse files
committed
updated for version 7.3.840
Problem: "\@<!" in regexp does not work correctly with multi-byte characters, especially cp932. Solution: Move column to start of multi-byte character. (Yasuhiro Matsumoto)
1 parent 3ca4c44 commit f33715c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/regexp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5449,6 +5449,13 @@ regmatch(scan)
54495449
}
54505450
}
54515451
else
5452+
#ifdef FEAT_MBYTE
5453+
if (has_mbyte)
5454+
rp->rs_un.regsave.rs_u.pos.col -=
5455+
(*mb_head_off)(regline, regline
5456+
+ rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
5457+
else
5458+
#endif
54525459
--rp->rs_un.regsave.rs_u.pos.col;
54535460
}
54545461
else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
840,
731733
/**/
732734
839,
733735
/**/

0 commit comments

Comments
 (0)