From: Bram Moolenaar Date: Mon, 18 May 2020 21:27:50 +0000 (+0200) Subject: patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm X-Git-Tag: v8.2.0796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37ebd42f16734838ab68be91da291c4ec8610f47;p=vim patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm Problem: MS-Windows: compiler can't handle C99 construct in libvterm. Solution: Change to C90 construct. --- diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c index 16bd790ae..fe8e7b455 100644 --- a/src/libvterm/src/state.c +++ b/src/libvterm/src/state.c @@ -1780,9 +1780,9 @@ static int on_resize(int rows, int cols, void *user) } for( ; row < rows; row++) { - newlineinfo[row] = (VTermLineInfo){ - .doublewidth = 0, - }; + VTermLineInfo lineInfo = (VTermLineInfo){0}; + lineInfo.doublewidth = 0; + newlineinfo[row] = lineInfo; } vterm_allocator_free(state->vt, state->lineinfos[bufidx]); diff --git a/src/version.c b/src/version.c index 3598f47d6..fc9a1a02d 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 796, /**/ 795, /**/