Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated for version 7.3.749

Problem:    Python interface doesn't build without the multi-byte feature.
Solution:   Add #ifdef. (Ken Takata)
  • Loading branch information...
commit ec81ae1623041355a2d8d221f3871908ad9bf0ad 1 parent a414270
Bram Moolenaar authored

Showing 2 changed files with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 src/if_py_both.h
  2. +2 0  src/version.c
8 src/if_py_both.h
@@ -520,7 +520,13 @@ VimStrwidth(PyObject *self UNUSED, PyObject *args)
520 520 if (!PyArg_ParseTuple(args, "s", &expr))
521 521 return NULL;
522 522
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 + );
524 530 }
525 531
526 532 /*
2  src/version.c
@@ -726,6 +726,8 @@ static char *(features[]) =
726 726 static int included_patches[] =
727 727 { /* Add new patch number below this line */
728 728 /**/
  729 + 749,
  730 +/**/
729 731 748,
730 732 /**/
731 733 747,

0 comments on commit ec81ae1

Please sign in to comment.
Something went wrong with that request. Please try again.