diff options
-rw-r--r-- | src/if_py_both.h | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 2398e812c..339250e99 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 ffefbb274..c551421f0 100644 --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 749, +/**/ 748, /**/ 747, |