aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorTommy Allen <tommy@esdf.io>2016-08-03 16:56:05 -0400
committerTommy Allen <tommy@esdf.io>2016-08-17 17:48:15 -0400
commit605e74327a406682f317d07e0097690fc1e577cb (patch)
treecdc6c3f9ca936c15f6709925f4498baafcce9190 /src/nvim/screen.c
parentdfb6a5133b92ffb38bfb7201e91f3de328652558 (diff)
downloadrneovim-605e74327a406682f317d07e0097690fc1e577cb.tar.gz
rneovim-605e74327a406682f317d07e0097690fc1e577cb.tar.bz2
rneovim-605e74327a406682f317d07e0097690fc1e577cb.zip
highlight: Added QuickFixLine highlight group
- Links to Search by default screen.c: Combine CursorLine with QuickFixLine - HLF_QFL takes priority over HLF_CUL docs: Updated to mention QuickFixLine runtime: Added QuickFixLine to nvimHLGroup tests: QuickFixLine highlight
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index d67142822f..fa8318d83e 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2405,7 +2405,7 @@ win_line (
/* Highlight the current line in the quickfix window. */
if (bt_quickfix(wp->w_buffer) && qf_current_entry(wp) == lnum)
- line_attr = hl_attr(HLF_L);
+ line_attr = hl_attr(HLF_QFL);
if (line_attr != 0)
area_highlighting = TRUE;
@@ -2624,7 +2624,12 @@ win_line (
* then. */
if (wp->w_p_cul && lnum == wp->w_cursor.lnum
&& !(wp == curwin && VIsual_active)) {
- line_attr = hl_attr(HLF_CUL);
+ if (line_attr != 0 && !(State & INSERT) && bt_quickfix(wp->w_buffer)
+ && qf_current_entry(wp) == lnum) {
+ line_attr = hl_combine_attr(hl_attr(HLF_CUL), line_attr);
+ } else {
+ line_attr = hl_attr(HLF_CUL);
+ }
area_highlighting = true;
}