aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-30 21:13:01 +0100
committerGitHub <noreply@github.com>2018-11-30 21:13:01 +0100
commit32a30d90b460048a43490a16d2e006d0e39b0e38 (patch)
tree470cc768df0a98d59b816d93eecf09c263a79813 /src
parentb0ebf61d37ccae3c480834d2ac1b5559e7e3d20d (diff)
downloadrneovim-32a30d90b460048a43490a16d2e006d0e39b0e38.tar.gz
rneovim-32a30d90b460048a43490a16d2e006d0e39b0e38.tar.bz2
rneovim-32a30d90b460048a43490a16d2e006d0e39b0e38.zip
highlight: Fix missing .rgb_sp_color in initializers (#9287)
terminal_get_line_attributes() had this bug for a long time, though it likely had no effect visible to users. ref #9028 ref 60f845ca55a1
Diffstat (limited to 'src')
-rw-r--r--src/nvim/highlight.c1
-rw-r--r--src/nvim/terminal.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c
index 12764e8059..5a9727f46e 100644
--- a/src/nvim/highlight.c
+++ b/src/nvim/highlight.c
@@ -188,6 +188,7 @@ int hl_get_underline(void)
.rgb_ae_attr = (int16_t)HL_UNDERLINE,
.rgb_fg_color = -1,
.rgb_bg_color = -1,
+ .rgb_sp_color = -1,
},
.kind = kHlUI,
.id1 = 0,
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 07722c68ac..f715344689 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -610,6 +610,7 @@ void terminal_get_line_attributes(Terminal *term, win_T *wp, int linenr,
.rgb_ae_attr = (int16_t)hl_attrs,
.rgb_fg_color = vt_fg,
.rgb_bg_color = vt_bg,
+ .rgb_sp_color = -1,
});
}