1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-05-18 23:27:50 +02:00
parent 88d68de95d
commit 37ebd42f16
2 changed files with 5 additions and 3 deletions

View 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]);

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
796,
/**/
795,
/**/