mirror of
https://github.com/vim/vim.git
synced 2025-09-08 22:13:47 -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:
parent
9750bb199e
commit
a54bf40017
@ -520,7 +520,13 @@ VimStrwidth(PyObject *self UNUSED, PyObject *args)
|
|||||||
if (!PyArg_ParseTuple(args, "s", &expr))
|
if (!PyArg_ParseTuple(args, "s", &expr))
|
||||||
return NULL;
|
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
749,
|
||||||
/**/
|
/**/
|
||||||
748,
|
748,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user