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:
@@ -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]);
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
796,
|
||||
/**/
|
||||
795,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user