]> granicus.if.org Git - vim/commitdiff
patch 8.1.1220: build fails on MS-Windows v8.1.1220
authorBram Moolenaar <Bram@vim.org>
Sat, 27 Apr 2019 20:38:30 +0000 (22:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 27 Apr 2019 20:38:30 +0000 (22:38 +0200)
Problem:    Build fails on MS-Windows.
Solution:   Move declaration to start of block.

src/libvterm/src/state.c
src/version.c

index d6ac29deb7ff3d7e735764ce373303807884bbdf..a08b005c259de8aefcaecf190b7f2267114ae227 100644 (file)
@@ -1629,12 +1629,12 @@ static int on_resize(int rows, int cols, void *user)
   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)
index 638faad3083bfbc3a7757d84d4a602fffb3df2dc..9fe5d2daf0a0b35f7dacb1f714f96e81ed77228f 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1220,
 /**/
     1219,
 /**/