Permalink
Browse files

updated for version 7.3.749

Problem:    Python interface doesn't build without the multi-byte feature.
Solution:   Add #ifdef. (Ken Takata)
  • Loading branch information...
1 parent a414270 commit ec81ae1623041355a2d8d221f3871908ad9bf0ad @brammool brammool committed Dec 5, 2012
Showing with 9 additions and 1 deletion.
  1. +7 −1 src/if_py_both.h
  2. +2 −0 src/version.c
View
8 src/if_py_both.h
@@ -520,7 +520,13 @@ VimStrwidth(PyObject *self UNUSED, PyObject *args)
if (!PyArg_ParseTuple(args, "s", &expr))
return NULL;
- return PyLong_FromLong(mb_string2cells((char_u *)expr, (int)STRLEN(expr)));
+ return PyLong_FromLong(
+#ifdef FEAT_MBYTE
+ mb_string2cells((char_u *)expr, (int)STRLEN(expr))
+#else
+ STRLEN(expr)
+#endif
+ );
}
/*
View
2 src/version.c
@@ -726,6 +726,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 749,
+/**/
748,
/**/
747,

0 comments on commit ec81ae1

Please sign in to comment.