summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-08 16:03:06 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-08 16:03:06 +0100
commit6e5c61119a07b513a99baa9618e8182a74fd7e24 (patch)
tree4227d2c668946547a1b7bdf7b30ec463ed13b3c4 /src/drawline.c
parent113d9dec9958debbae2b611c98aed2f6f23c8502 (diff)
patch 9.0.0171: quickfix line highlight is overruled by 'cursorline'v9.0.0171
Problem: Quickfix line highlight is overruled by 'cursorline'. Solution: Reverse the combination of attributes. (closes #10654)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index eaae4bed36..a435e4e841 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1159,7 +1159,10 @@ win_line(
else
# endif
# if defined(FEAT_QUICKFIX)
- line_attr = hl_combine_attr(line_attr, cul_attr);
+ // let the line attribute overrule 'cursorline', otherwise
+ // it disappears when both have background set;
+ // 'cursorline' can use underline or bold to make it show
+ line_attr = hl_combine_attr(cul_attr, line_attr);
# else
line_attr = cul_attr;
# endif