diff src/screen.c @ 12122:68c593f649d1 v8.0.0941

patch 8.0.0941: existing color schemes don't like StatusLineTerm commit https://github.com/vim/vim/commit/05fbfdcda48a564e7a778c67251f732481f3ceaa Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 14 22:35:08 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Mon, 14 Aug 2017 22:45:04 +0200
parents f306e6decaf9
children 69af108df70e
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -7258,6 +7258,9 @@ win_redr_custom(
 	    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 @@ fillchar_status(int *attr, win_T *wp)
 #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