mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.0.1195: can't build on MS-Windows
Problem: Can't build on MS-Windows. Solution: Adjust #ifdef and add #ifdefs.
This commit is contained in:
@@ -5828,7 +5828,7 @@ check_termcode(
|
|||||||
return 0; /* no match found */
|
return 0; /* no match found */
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_TERMINAL) || defined(PROTO)
|
#if (defined(FEAT_TERMINAL) && defined(FEAT_TERMRESPONSE)) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Get the text foreground color, if known.
|
* Get the text foreground color, if known.
|
||||||
*/
|
*/
|
||||||
|
@@ -2624,8 +2624,10 @@ create_vterm(term_T *term, int rows, int cols)
|
|||||||
fg->blue = tmp;
|
fg->blue = tmp;
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
# ifdef FEAT_TERMRESPONSE
|
||||||
else
|
else
|
||||||
term_get_fg_color(&fg->red, &fg->green, &fg->blue);
|
term_get_fg_color(&fg->red, &fg->green, &fg->blue);
|
||||||
|
# endif
|
||||||
|
|
||||||
if (cterm_normal_bg_color > 0)
|
if (cterm_normal_bg_color > 0)
|
||||||
{
|
{
|
||||||
@@ -2636,8 +2638,10 @@ create_vterm(term_T *term, int rows, int cols)
|
|||||||
bg->blue = tmp;
|
bg->blue = tmp;
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
# ifdef FEAT_TERMRESPONSE
|
||||||
else
|
else
|
||||||
term_get_bg_color(&bg->red, &bg->green, &bg->blue);
|
term_get_bg_color(&bg->red, &bg->green, &bg->blue);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg);
|
vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg);
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1195,
|
||||||
/**/
|
/**/
|
||||||
1194,
|
1194,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user