aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-06-14 20:32:16 +0200
committerGitHub <noreply@github.com>2017-06-14 20:32:16 +0200
commit7918845215855814cf16b483fb0bec9cdad313d2 (patch)
tree7c4b17c92f72df637d096e43ccbd00891a896e87 /src/nvim/terminal.c
parent6650588c4a89616249e964631dad17a66e1c6592 (diff)
parentad73a70e5a1c7da58d7afbb70310c14c62b2519d (diff)
downloadrneovim-7918845215855814cf16b483fb0bec9cdad313d2.tar.gz
rneovim-7918845215855814cf16b483fb0bec9cdad313d2.tar.bz2
rneovim-7918845215855814cf16b483fb0bec9cdad313d2.zip
Merge pull request #6700 from bfredl/winhl
window specific ui highlighting: part 2
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index bde07b0cd9..1882f263db 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -601,8 +601,10 @@ void terminal_get_line_attributes(Terminal *term, win_T *wp, int linenr,
if (term->cursor.visible && term->cursor.row == row
&& term->cursor.col == col) {
- attr_id = hl_combine_attr(attr_id, is_focused(term) && wp == curwin ?
- hl_attr(HLF_TERM) : hl_attr(HLF_TERMNC));
+ attr_id = hl_combine_attr(attr_id,
+ is_focused(term) && wp == curwin
+ ? win_hl_attr(wp, HLF_TERM)
+ : win_hl_attr(wp, HLF_TERMNC));
}
term_attrs[col] = attr_id;