diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-11 13:01:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-11 13:01:31 +0100 |
commit | 564ad60c0624941bdd63a6ed026cd03573c46f5a (patch) | |
tree | f965a496f29fa35d17af6829238bc6e8aa65007e /src/nvim/api/ui.c | |
parent | dd068928c1c39854a65108366c1a3106cfdb43c5 (diff) | |
parent | 5d8da126d0b5ab7f550a74264ba434a2ad04280e (diff) | |
download | rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.tar.gz rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.tar.bz2 rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.zip |
Merge pull request #7982 from bfredl/hlrefactor
Refactor HlAttrs so that termguicolors is implemented purely on TUI side
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 760c95eb5b..e53a45bd93 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -86,6 +86,7 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, ui->put = remote_ui_put; ui->bell = remote_ui_bell; ui->visual_bell = remote_ui_visual_bell; + ui->default_colors_set = remote_ui_default_colors_set; ui->update_fg = remote_ui_update_fg; ui->update_bg = remote_ui_update_bg; ui->update_sp = remote_ui_update_sp; @@ -243,7 +244,7 @@ static void push_call(UI *ui, char *name, Array args) static void remote_ui_highlight_set(UI *ui, HlAttrs attrs) { Array args = ARRAY_DICT_INIT; - Dictionary hl = hlattrs2dict(attrs); + Dictionary hl = hlattrs2dict(&attrs, ui->rgb); ADD(args, DICTIONARY_OBJ(hl)); push_call(ui, "highlight_set", args); |