summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-11-03 15:04:20 +0000
committerBram Moolenaar <Bram@vim.org>2009-11-03 15:04:20 +0000
commit2ac5e603d8e64970fac5794e8bf03ea8e2b6d473 (patch)
tree498e09854b197c98a45f88c817a74a7bd4b9db8d
parent740885b78b426906c522cf7abe34ea830cfd5ab3 (diff)
downloadvim-2ac5e603d8e64970fac5794e8bf03ea8e2b6d473.zip
updated for version 7.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 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;
diff --git a/src/version.c b/src/version.c
index f1efeae64..5888b2d3b 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,