aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-07-26 20:36:24 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-08-13 13:35:35 +0200
commitfab555e59c627b07e8a2d229d95737be7d6ce666 (patch)
treece5c238eb8d8b328a8d71fc61b9908024dad5a2e /src/nvim/screen.c
parentee5cc88a73401e4352660862631117c8319950f7 (diff)
downloadrneovim-fab555e59c627b07e8a2d229d95737be7d6ce666.tar.gz
rneovim-fab555e59c627b07e8a2d229d95737be7d6ce666.tar.bz2
rneovim-fab555e59c627b07e8a2d229d95737be7d6ce666.zip
highlight: HlAttrs is a value type; treat it like such
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index f7fdc6060d..31b0d0aa54 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2424,12 +2424,12 @@ win_line (
if (wp->w_p_cul && lnum == wp->w_cursor.lnum
&& !(wp == curwin && VIsual_active)) {
int cul_attr = win_hl_attr(wp, HLF_CUL);
- HlAttrs *aep = syn_attr2entry(cul_attr);
+ HlAttrs ae = syn_attr2entry(cul_attr);
// We make a compromise here (#7383):
// * low-priority CursorLine if fg is not set
// * high-priority ("same as Vim" priority) CursorLine if fg is set
- if (aep->rgb_fg_color == -1 && aep->cterm_fg_color == 0) {
+ if (ae.rgb_fg_color == -1 && ae.cterm_fg_color == 0) {
line_attr_lowprio = cul_attr;
} else {
if (line_attr != 0 && !(State & INSERT) && bt_quickfix(wp->w_buffer)