]> granicus.if.org Git - vim/commitdiff
patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm v8.2.0796
authorBram Moolenaar <Bram@vim.org>
Mon, 18 May 2020 21:27:50 +0000 (23:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 May 2020 21:27:50 +0000 (23:27 +0200)
Problem:    MS-Windows: compiler can't handle C99 construct in libvterm.
Solution:   Change to C90 construct.

src/libvterm/src/state.c
src/version.c

index 16bd790ae69e7f673f3c03c2666da73eed96d6e9..fe8e7b455b1d05f5714efc222a3261ed4032fc23 100644 (file)
@@ -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]);
index 3598f47d61d730518c3cd5128601346e64c39a94..fc9a1a02d545b171890300607aa016b6b328acdc 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    796,
 /**/
     795,
 /**/