1
0
forked from aniani/vim

patch 8.0.0937: user highlight groups not adjusted for terminal

Problem:    User highlight groups are not adjusted for StatusLineTerm.
Solution:   Combine attributes like for StatusLineNC.
This commit is contained in:
Bram Moolenaar
2017-08-13 21:37:43 +02:00
parent 2bb7b6b0e4
commit bce4f62d30
4 changed files with 105 additions and 59 deletions

View File

@@ -7257,6 +7257,11 @@ win_redr_custom(
else if (hltab[n].userhl < 0)
curattr = syn_id2attr(-hltab[n].userhl);
#ifdef FEAT_WINDOWS
# ifdef FEAT_TERMINAL
else if (wp != NULL && bt_terminal(wp->w_buffer)
&& wp->w_status_height != 0)
curattr = highlight_stlterm[hltab[n].userhl - 1];
# endif
else if (wp != NULL && wp != curwin && wp->w_status_height != 0)
curattr = highlight_stlnc[hltab[n].userhl - 1];
#endif