patch 8.0.1195: can't build on MS-Windows
Problem: Can't build on MS-Windows.
Solution: Adjust #ifdef and add #ifdefs.
diff --git a/src/terminal.c b/src/terminal.c
index 9519c81..7aa0a40 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2624,8 +2624,10 @@
fg->blue = tmp;
# endif
}
+# ifdef FEAT_TERMRESPONSE
else
term_get_fg_color(&fg->red, &fg->green, &fg->blue);
+# endif
if (cterm_normal_bg_color > 0)
{
@@ -2636,8 +2638,10 @@
bg->blue = tmp;
# endif
}
+# ifdef FEAT_TERMRESPONSE
else
term_get_bg_color(&bg->red, &bg->green, &bg->blue);
+# endif
}
vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg);