aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/remote_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/msgpack_rpc/remote_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/msgpack_rpc/remote_ui.c')
-rw-r--r--src/nvim/msgpack_rpc/remote_ui.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/msgpack_rpc/remote_ui.c b/src/nvim/msgpack_rpc/remote_ui.c
index f0d92b52a0..6ffcffe2e1 100644
--- a/src/nvim/msgpack_rpc/remote_ui.c
+++ b/src/nvim/msgpack_rpc/remote_ui.c
@@ -96,6 +96,7 @@ static Object remote_ui_attach(uint64_t channel_id, uint64_t request_id,
ui->visual_bell = remote_ui_visual_bell;
ui->update_fg = remote_ui_update_fg;
ui->update_bg = remote_ui_update_bg;
+ ui->update_sp = remote_ui_update_sp;
ui->flush = remote_ui_flush;
ui->suspend = remote_ui_suspend;
ui->set_title = remote_ui_set_title;
@@ -285,6 +286,10 @@ static void remote_ui_highlight_set(UI *ui, HlAttrs attrs)
PUT(hl, "background", INTEGER_OBJ(attrs.background));
}
+ if (attrs.special != -1) {
+ PUT(hl, "special", INTEGER_OBJ(attrs.special));
+ }
+
ADD(args, DICTIONARY_OBJ(hl));
push_call(ui, "highlight_set", args);
}
@@ -323,6 +328,13 @@ static void remote_ui_update_bg(UI *ui, int bg)
push_call(ui, "update_bg", args);
}
+static void remote_ui_update_sp(UI *ui, int sp)
+{
+ Array args = ARRAY_DICT_INIT;
+ ADD(args, INTEGER_OBJ(sp));
+ push_call(ui, "update_sp", args);
+}
+
static void remote_ui_flush(UI *ui)
{
UIData *data = ui->data;