summaryrefslogtreecommitdiff
path: root/src/libvterm
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 /src/libvterm
parent88d68de95da70d0f89a5246f58355d72e9c17db4 (diff)
downloadvim-git-37ebd42f16734838ab68be91da291c4ec8610f47.tar.gz
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.
Diffstat (limited to 'src/libvterm')
-rw-r--r--src/libvterm/src/state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c
index 16bd790ae..fe8e7b455 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]);