Skip to content

Commit 0ee1bdf

Browse files
committed
patch 8.1.1220: build fails on MS-Windows
Problem: Build fails on MS-Windows. Solution: Move declaration to start of block.
1 parent 6ee9658 commit 0ee1bdf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/libvterm/src/state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,12 +1629,12 @@ static int on_resize(int rows, int cols, void *user)
16291629
VTermPos delta = { 0, 0 };
16301630

16311631
if(cols != state->cols) {
1632+
int col;
16321633
unsigned char *newtabstops = vterm_allocator_malloc(state->vt, (cols + 7) / 8);
16331634
if (newtabstops == NULL)
16341635
return 0;
16351636

16361637
/* TODO: This can all be done much more efficiently bytewise */
1637-
int col;
16381638
for(col = 0; col < state->cols && col < cols; col++) {
16391639
unsigned char mask = 1 << (col & 7);
16401640
if(state->tabstops[col >> 3] & mask)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1220,
770772
/**/
771773
1219,
772774
/**/

0 commit comments

Comments
 (0)