diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-03 08:29:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-03 08:29:45 +0200 |
commit | 402a797d08a5d943d28be1b795bb4d80f17887c7 (patch) | |
tree | 47c2dc6e202a690274e43eda8bf4f01e7c0d4dd1 /src/nvim/api/ui.c | |
parent | 39a03c0fe736629cf7804dbaf9b73df60aa237cd (diff) | |
parent | b8331e1a1cc99129495e655bce171f583661edda (diff) | |
download | rneovim-402a797d08a5d943d28be1b795bb4d80f17887c7.tar.gz rneovim-402a797d08a5d943d28be1b795bb4d80f17887c7.tar.bz2 rneovim-402a797d08a5d943d28be1b795bb4d80f17887c7.zip |
Merge #8456 'API: nvim_list_uis: include channel id'
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 4cd2657561..b6e0b9a566 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -97,6 +97,7 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, ui->set_icon = remote_ui_set_icon; ui->option_set = remote_ui_option_set; ui->event = remote_ui_event; + ui->inspect = remote_ui_inspect; memset(ui->ui_ext, 0, sizeof(ui->ui_ext)); @@ -275,3 +276,9 @@ static void remote_ui_event(UI *ui, char *name, Array args, bool *args_consumed) } push_call(ui, name, my_args); } + +static void remote_ui_inspect(UI *ui, Dictionary *info) +{ + UIData *data = ui->data; + PUT(*info, "chan", INTEGER_OBJ((Integer)data->channel_id)); +} |