# HG changeset patch # User Bram Moolenaar # Date 1589837403 -7200 # Node ID 538278607c848778d8d099671a3a0b2da04941ff # Parent 2949e5d9481f6d72300957bc21e1423519db8db4 patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm Commit: https://github.com/vim/vim/commit/37ebd42f16734838ab68be91da291c4ec8610f47 Author: Bram Moolenaar Date: Mon May 18 23:27:50 2020 +0200 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 --- a/src/libvterm/src/state.c +++ b/src/libvterm/src/state.c @@ -1780,9 +1780,9 @@ static int on_resize(int rows, int cols, } 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 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 796, +/**/ 795, /**/ 794,