diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-12-05 16:30:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-12-05 16:30:07 +0100 |
commit | a54bf400174df9f4a35013da140e537fdb24153a (patch) | |
tree | f2f22ce7bad618f8afaf0f60e82ef7c375efc60d /src/if_py_both.h | |
parent | 9750bb199e0f171c185bd3a23591e57922765509 (diff) | |
download | vim-git-a54bf400174df9f4a35013da140e537fdb24153a.tar.gz |
updated for version 7.3.749v7.3.749
Problem: Python interface doesn't build without the multi-byte feature.
Solution: Add #ifdef. (Ken Takata)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 2398e812c..339250e99 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -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 + ); } /* |