]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.749 v7.3.749
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Dec 2012 15:30:07 +0000 (16:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Dec 2012 15:30:07 +0000 (16:30 +0100)
Problem:    Python interface doesn't build without the multi-byte feature.
Solution:   Add #ifdef. (Ken Takata)

src/if_py_both.h
src/version.c

index 2398e812c2ef4e086cc2569a95b6aa43c2b6f0bb..339250e99c34dad37b3a12ab05434633df56243f 100644 (file)
@@ -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
+           );
 }
 
 /*
index ffefbb2741b0fa15696588933b55a2c5c28e4548..c551421f0de12de2fe236e233924f6d4e5f5f913 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    749,
 /**/
     748,
 /**/