From: Bram Moolenaar Date: Sat, 27 Apr 2019 20:45:00 +0000 (+0200) Subject: patch 8.1.1222: build still fails on MS-Windows X-Git-Tag: v8.1.1222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcaa54dded7c7ef9b2217a205d23301d313e96dc;p=vim patch 8.1.1222: build still fails on MS-Windows Problem: Build still fails on MS-Windows. Solution: Move another declaration to start of block. --- diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c index a08b005c2..b50e3667a 100644 --- a/src/libvterm/src/state.c +++ b/src/libvterm/src/state.c @@ -1656,11 +1656,11 @@ static int on_resize(int rows, int cols, void *user) } if(rows != state->rows) { + int row; VTermLineInfo *newlineinfo = vterm_allocator_malloc(state->vt, rows * sizeof(VTermLineInfo)); if (newlineinfo == NULL) return 0; - int row; for(row = 0; row < state->rows && row < rows; row++) { newlineinfo[row] = state->lineinfo[row]; } diff --git a/src/version.c b/src/version.c index c65c541ac..1bdcaaf0a 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1222, /**/ 1221, /**/