0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Fix build broken without multi-byte feature.

This commit is contained in:
Bram Moolenaar
2010-07-18 14:20:35 +02:00
parent 7c86f4cca3
commit fdf732eed7

View File

@@ -3800,7 +3800,11 @@ clear_showcmd()
} }
while ((*p_sel != 'e') ? s <= e : s < e) while ((*p_sel != 'e') ? s <= e : s < e)
{ {
# ifdef FEAT_MBYTE
l = (*mb_ptr2len)(s); l = (*mb_ptr2len)(s);
# else
l = (*s == NUL) ? 0 : 1;
# endif
if (l == 0) if (l == 0)
{ {
++bytes; ++bytes;