summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-01-30 13:59:37 +0100
committerBram Moolenaar <Bram@vim.org>2013-01-30 13:59:37 +0100
commitf813a1883f767ad9c4a7a44b5f42cee312d53bc0 (patch)
treed9b6149762cad2f6069933a2f45e84c637c1f670 /src/mbyte.c
parent8d616172389a666e74c47c4e41f5cd9a17a38268 (diff)
downloadvim-git-f813a1883f767ad9c4a7a44b5f42cee312d53bc0.tar.gz
updated for version 7.3.789v7.3.789
Problem: "\k" in regexp does not work in other window. Solution: Use the right buffer. (Yukihiro Nakadaira)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index b896477fc..80f669135 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -869,11 +869,19 @@ remove_bom(s)
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;
}