aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-11 16:51:31 +0800
committerGitHub <noreply@github.com>2023-04-11 16:51:31 +0800
commitdcaf2073369c672655722472aa4e7bcba7757f4c (patch)
tree01f446eb1d57774f1c7fd40a78290f390e897406 /src
parentccc0980f86c6ef9a86b0e5a3a691f37cea8eb776 (diff)
downloadrneovim-dcaf2073369c672655722472aa4e7bcba7757f4c.tar.gz
rneovim-dcaf2073369c672655722472aa4e7bcba7757f4c.tar.bz2
rneovim-dcaf2073369c672655722472aa4e7bcba7757f4c.zip
fix(highlight): combine ColorColumn with low-priority CursorLine (#23017)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
index fcac837993..27e1632559 100644
--- a/src/nvim/drawline.c
+++ b/src/nvim/drawline.c
@@ -2668,7 +2668,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol) {
col_attr = cuc_attr;
} else if (draw_color_col && VCOL_HLC == *color_cols) {
- col_attr = mc_attr;
+ col_attr = hl_combine_attr(wlv.line_attr_lowprio, mc_attr);
}
col_attr = hl_combine_attr(col_attr, wlv.line_attr);