diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-11-03 15:04:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-11-03 15:04:20 +0000 |
commit | 2ac5e603d8e64970fac5794e8bf03ea8e2b6d473 (patch) | |
tree | 498e09854b197c98a45f88c817a74a7bd4b9db8d /src/charset.c | |
parent | 740885b78b426906c522cf7abe34ea830cfd5ab3 (diff) | |
download | vim-git-2ac5e603d8e64970fac5794e8bf03ea8e2b6d473.tar.gz |
updated for version 7.2-276v7.2.276
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index cc02563b2..5b0e71c8a 100644 --- a/src/charset.c +++ b/src/charset.c @@ -187,9 +187,14 @@ buf_init_chartab(buf, global) if (VIM_ISDIGIT(*p)) c2 = getdigits(&p); else +#ifdef FEAT_MBYTE + if (has_mbyte) + c2 = mb_ptr2char_adv(&p); + else +#endif c2 = *p++; } - if (c <= 0 || (c2 < c && c2 != -1) || c2 >= 256 + if (c <= 0 || c >= 256 || (c2 < c && c2 != -1) || c2 >= 256 || !(*p == NUL || *p == ',')) return FAIL; |