updated for version 7.3.749
Problem: Python interface doesn't build without the multi-byte feature.
Solution: Add #ifdef. (Ken Takata)
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 2398e81..339250e 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -520,7 +520,13 @@
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
+ );
}
/*