mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 8.1.1220: build fails on MS-Windows
Problem: Build fails on MS-Windows. Solution: Move declaration to start of block.
This commit is contained in:
parent
6ee9658774
commit
0ee1bdff7d
@ -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)
|
||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1220,
|
||||
/**/
|
||||
1219,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user