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

updated for version 7.3.789

Problem:    "\k" in regexp does not work in other window.
Solution:   Use the right buffer. (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2013-01-30 13:59:37 +01:00
parent 8d61617238
commit f813a1883f
4 changed files with 20 additions and 8 deletions

View File

@@ -868,12 +868,20 @@ remove_bom(s)
int
mb_get_class(p)
char_u *p;
{
return mb_get_class_buf(p, curbuf);
}
int
mb_get_class_buf(p, buf)
char_u *p;
buf_T *buf;
{
if (MB_BYTE2LEN(p[0]) == 1)
{
if (p[0] == NUL || vim_iswhite(p[0]))
return 0;
if (vim_iswordc(p[0]))
if (vim_iswordc_buf(p[0], buf))
return 2;
return 1;
}