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

patch 7.4.1192

Problem:    Can't build with FEAT_EVAL but without FEAT_MBYTE. (John
            Marriott)
Solution:   Add #ifdef for FEAT_MBYTE.
This commit is contained in:
Bram Moolenaar
2016-01-28 22:46:58 +01:00
parent 298b440930
commit fa06a517b5
2 changed files with 7 additions and 0 deletions

View File

@@ -68,7 +68,12 @@ write_string(garray_T *gap, char_u *str)
default:
if (c >= 0x20)
{
#ifdef FEAT_MBYTE
numbuf[mb_char2bytes(c, numbuf)] = NUL;
#else
numbuf[0] = c;
numbuf[1] = NUL;
#endif
ga_concat(gap, numbuf);
}
else