Skip to content

Commit fa06a51

Browse files
committed
patch 7.4.1192
Problem: Can't build with FEAT_EVAL but without FEAT_MBYTE. (John Marriott) Solution: Add #ifdef for FEAT_MBYTE.
1 parent 298b440 commit fa06a51

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/json.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ write_string(garray_T *gap, char_u *str)
6868
default:
6969
if (c >= 0x20)
7070
{
71+
#ifdef FEAT_MBYTE
7172
numbuf[mb_char2bytes(c, numbuf)] = NUL;
73+
#else
74+
numbuf[0] = c;
75+
numbuf[1] = NUL;
76+
#endif
7277
ga_concat(gap, numbuf);
7378
}
7479
else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ static char *(features[]) =
746746

747747
static int included_patches[] =
748748
{ /* Add new patch number below this line */
749+
/**/
750+
1192,
749751
/**/
750752
1191,
751753
/**/

0 commit comments

Comments
 (0)