summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-18 23:27:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-18 23:27:50 +0200
commit37ebd42f16734838ab68be91da291c4ec8610f47 (patch)
treebc0b37320613e632d24bdc0ddce0a86a6e38b6fc
parent88d68de95da70d0f89a5246f58355d72e9c17db4 (diff)
patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvtermv8.2.0796
Problem: MS-Windows: compiler can't handle C99 construct in libvterm. Solution: Change to C90 construct.
-rw-r--r--src/libvterm/src/state.c6
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c
index 16bd790ae6..fe8e7b455b 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]);
diff --git a/src/version.c b/src/version.c
index 3598f47d61..fc9a1a02d5 100644
--- 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,