Skip to content

Commit ec81ae1

Browse files
committed
updated for version 7.3.749
Problem: Python interface doesn't build without the multi-byte feature. Solution: Add #ifdef. (Ken Takata)
1 parent a414270 commit ec81ae1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/if_py_both.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,13 @@ VimStrwidth(PyObject *self UNUSED, PyObject *args)
520520
if (!PyArg_ParseTuple(args, "s", &expr))
521521
return NULL;
522522

523-
return PyLong_FromLong(mb_string2cells((char_u *)expr, (int)STRLEN(expr)));
523+
return PyLong_FromLong(
524+
#ifdef FEAT_MBYTE
525+
mb_string2cells((char_u *)expr, (int)STRLEN(expr))
526+
#else
527+
STRLEN(expr)
528+
#endif
529+
);
524530
}
525531

526532
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ static char *(features[]) =
725725

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
749,
728730
/**/
729731
748,
730732
/**/

0 commit comments

Comments
 (0)