From: Bram Moolenaar Date: Wed, 5 Dec 2012 15:30:07 +0000 (+0100) Subject: updated for version 7.3.749 X-Git-Tag: v7.3.749 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a54bf400174df9f4a35013da140e537fdb24153a;p=thirdparty%2Fvim.git updated for version 7.3.749 Problem: Python interface doesn't build without the multi-byte feature. Solution: Add #ifdef. (Ken Takata) --- diff --git a/src/if_py_both.h b/src/if_py_both.h index 2398e812c2..339250e99c 100644 --- a/src/if_py_both.h +++ b/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 + ); } /* diff --git a/src/version.c b/src/version.c index ffefbb2741..c551421f0d 100644 --- a/src/version.c +++ b/src/version.c @@ -725,6 +725,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 749, /**/ 748, /**/