changeset 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 2949e5d9481f
children ffaeb617194e
files src/libvterm/src/state.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
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]);
--- 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,