changeset 16431:d1357b505d78 v8.1.1220

patch 8.1.1220: build fails on MS-Windows commit https://github.com/vim/vim/commit/0ee1bdff7d34df5fb764a2af15594f9da34a47cc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 22:38:30 2019 +0200 patch 8.1.1220: build fails on MS-Windows Problem: Build fails on MS-Windows. Solution: Move declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 22:45:04 +0200
parents feb4ca731ff6
children ea9308b99fef
files src/libvterm/src/state.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -1629,12 +1629,12 @@ static int on_resize(int rows, int cols,
   VTermPos delta = { 0, 0 };
 
   if(cols != state->cols) {
+    int col;
     unsigned char *newtabstops = vterm_allocator_malloc(state->vt, (cols + 7) / 8);
     if (newtabstops == NULL)
       return 0;
 
     /* TODO: This can all be done much more efficiently bytewise */
-    int col;
     for(col = 0; col < state->cols && col < cols; col++) {
       unsigned char mask = 1 << (col & 7);
       if(state->tabstops[col >> 3] & mask)
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1220,
+/**/
     1219,
 /**/
     1218,