0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2013-02-26 18:46:01 +01:00
parent e468e266c4
commit f5e44a7e90
2 changed files with 9 additions and 0 deletions

View File

@ -5449,6 +5449,13 @@ regmatch(scan)
}
}
else
#ifdef FEAT_MBYTE
if (has_mbyte)
rp->rs_un.regsave.rs_u.pos.col -=
(*mb_head_off)(regline, regline
+ rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
else
#endif
--rp->rs_un.regsave.rs_u.pos.col;
}
else

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
840,
/**/
839,
/**/