summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2009-11-03 15:04:20 +0000
committervimboss <devnull@localhost>2009-11-03 15:04:20 +0000
commit59f34ed1b90025e58ff211e969e6f64c6d289de8 (patch)
tree498e09854b197c98a45f88c817a74a7bd4b9db8d
parent4ad47b2f0627fc6cdc513d7af2f8f94ef08d23f1 (diff)
downloadvim-59f34ed1b90025e58ff211e969e6f64c6d289de8.tar.gz
updated for version 7.2-276v7.2.276v7-2-276
-rw-r--r--src/charset.c7
-rw-r--r--src/version.c2
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,