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:
@@ -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
|
||||
|
Reference in New Issue
Block a user