]> granicus.if.org Git - vim/commitdiff
patch 8.2.0797: MS-Windows: compiler still can't handle C99 construct v8.2.0797
authorBram Moolenaar <Bram@vim.org>
Tue, 19 May 2020 08:33:02 +0000 (10:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 May 2020 08:33:02 +0000 (10:33 +0200)
Problem:    MS-Windows: compiler still can't handle C99 construct.
Solution:   Change to C90 construct. (Dominique Pelle, closes #6106)

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

index fe8e7b455b1d05f5714efc222a3261ed4032fc23..1be1dae85b263a1ab65bd8a526d282cbe875c9ba 100644 (file)
@@ -1780,8 +1780,7 @@ static int on_resize(int rows, int cols, void *user)
       }
 
       for( ; row < rows; row++) {
-       VTermLineInfo lineInfo = (VTermLineInfo){0};
-       lineInfo.doublewidth = 0;
+       VTermLineInfo lineInfo = {0};
        newlineinfo[row] = lineInfo;
       }
 
index fc9a1a02d545b171890300607aa016b6b328acdc..9c1f6f180f02a3d8173835c2881bb7288cd46bdb 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    797,
 /**/
     796,
 /**/