From 37ebd42f16734838ab68be91da291c4ec8610f47 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 18 May 2020 23:27:50 +0200 Subject: 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. --- src/libvterm/src/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libvterm') 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]); -- cgit v1.2.1