summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-01-23 15:53:15 +0100
committerBram Moolenaar <Bram@vim.org>2013-01-23 15:53:15 +0100
commit9d182dd0a666f7cb706cd54dd78df3f59a160fff (patch)
tree53eb72dd576979b4fdde34e2b0eaff7f972a028f /src/charset.c
parent4da70dbc4ddef9b2a2815cc0f6f09a283b65e671 (diff)
downloadvim-git-9d182dd0a666f7cb706cd54dd78df3f59a160fff.tar.gz
updated for version 7.3.776v7.3.776
Problem: ml_get error when searching, caused by curwin not matching curbuf. Solution: Avoid changing curbuf. (Lech Lorens)
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index d3ebfbf76..6f39cf6d0 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -905,6 +905,14 @@ vim_isIDc(c)
vim_iswordc(c)
int c;
{
+ return vim_iswordc_buf(c, curbuf);
+}
+
+ int
+vim_iswordc_buf(c, buf)
+ int c;
+ buf_T *buf;
+{
#ifdef FEAT_MBYTE
if (c >= 0x100)
{
@@ -914,7 +922,7 @@ vim_iswordc(c)
return utf_class(c) >= 2;
}
#endif
- return (c > 0 && c < 0x100 && GET_CHARTAB(curbuf, c) != 0);
+ return (c > 0 && c < 0x100 && GET_CHARTAB(buf, c) != 0);
}
/*
@@ -933,7 +941,7 @@ vim_iswordp(p)
#if defined(FEAT_SYN_HL) || defined(PROTO)
int
-vim_iswordc_buf(p, buf)
+vim_iswordp_buf(p, buf)
char_u *p;
buf_T *buf;
{