diff src/libvterm/src/state.c @ 20484:538278607c84 v8.2.0796

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 <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 May 2020 23:30:03 +0200
parents dc88c690f19b
children 8ddcdb0d1074
line wrap: on
line diff
--- 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]);