aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-19 22:16:59 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-19 22:20:52 -0400
commit74f64601817a6cec92bf40a3b29809cb6e12afcc (patch)
treeb6adbb55ea0f7bf409c8d6f366338da380135a3d /src/nvim/ui.c
parent1fabc639078e1ddbc4ef6ddd7cb310a67fb1c0fb (diff)
parente5eea7fa06ae7057521755d1f638d34e049bd379 (diff)
downloadrneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.tar.gz
rneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.tar.bz2
rneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.zip
Merge #4633: support "special" highlight (undercurl)
Closes #2040 Closes #3370
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index d32969f149..05322a6f64 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -155,6 +155,7 @@ void ui_resize(int new_width, int new_height)
UI_CALL(update_fg, (ui->rgb ? normal_fg : cterm_normal_fg_color - 1));
UI_CALL(update_bg, (ui->rgb ? normal_bg : cterm_normal_bg_color - 1));
+ UI_CALL(update_sp, (ui->rgb ? normal_sp : -1));
sr.top = 0;
sr.bot = height - 1;
@@ -388,7 +389,7 @@ static void parse_control_character(uint8_t c)
static void set_highlight_args(int attr_code)
{
- HlAttrs rgb_attrs = { false, false, false, false, false, -1, -1 };
+ HlAttrs rgb_attrs = { false, false, false, false, false, -1, -1, -1 };
HlAttrs cterm_attrs = rgb_attrs;
if (attr_code == HL_NORMAL) {
@@ -425,6 +426,10 @@ static void set_highlight_args(int attr_code)
rgb_attrs.background = aep->rgb_bg_color;
}
+ if (aep->rgb_sp_color != normal_sp) {
+ rgb_attrs.special = aep->rgb_sp_color;
+ }
+
if (cterm_normal_fg_color != aep->cterm_fg_color) {
cterm_attrs.foreground = aep->cterm_fg_color - 1;
}