diff options
author | vimboss <devnull@localhost> | 2009-11-03 15:04:20 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2009-11-03 15:04:20 +0000 |
commit | 59f34ed1b90025e58ff211e969e6f64c6d289de8 (patch) | |
tree | 498e09854b197c98a45f88c817a74a7bd4b9db8d | |
parent | 4ad47b2f0627fc6cdc513d7af2f8f94ef08d23f1 (diff) | |
download | vim-59f34ed1b90025e58ff211e969e6f64c6d289de8.tar.gz |
-rw-r--r-- | src/charset.c | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index cc02563b..5b0e71c8 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; diff --git a/src/version.c b/src/version.c index f1efeae6..5888b2d3 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 276, +/**/ 275, /**/ 274, |