0
0
mirror of https://github.com/vim/vim.git synced 2025-09-07 22:03:36 -04:00

updated for version 7.3.749

Problem:    Python interface doesn't build without the multi-byte feature.
Solution:   Add #ifdef. (Ken Takata)
This commit is contained in:
Bram Moolenaar 2012-12-05 16:30:07 +01:00
parent 9750bb199e
commit a54bf40017
2 changed files with 9 additions and 1 deletions

View 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
);
}
/*

View File

@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
749,
/**/
748,
/**/