patch 8.0.0941: existing color schemes don't like StatusLineTerm
Problem: Existing color schemes don't work well with StatusLineTerm.
Solution: Don't use "reverse", use fg and bg colors. Also add
StatusLineTermNC.
diff --git a/src/screen.c b/src/screen.c
index 05a1709..55440f4 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -7258,6 +7258,9 @@
curattr = syn_id2attr(-hltab[n].userhl);
#ifdef FEAT_WINDOWS
# ifdef FEAT_TERMINAL
+ else if (wp != NULL && wp != curwin && bt_terminal(wp->w_buffer)
+ && wp->w_status_height != 0)
+ curattr = highlight_stltermnc[hltab[n].userhl - 1];
else if (wp != NULL && bt_terminal(wp->w_buffer)
&& wp->w_status_height != 0)
curattr = highlight_stlterm[hltab[n].userhl - 1];
@@ -10724,11 +10727,16 @@
#ifdef FEAT_TERMINAL
if (bt_terminal(wp->w_buffer))
{
- *attr = HL_ATTR(HLF_ST);
if (wp == curwin)
+ {
+ *attr = HL_ATTR(HLF_ST);
fill = fill_stl;
+ }
else
+ {
+ *attr = HL_ATTR(HLF_STNC);
fill = fill_stlnc;
+ }
}
else
#endif