diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-12 17:45:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 17:45:33 -0700 |
commit | 3855204f5860ff2a66133541ff7593f0c2606a75 (patch) | |
tree | c028665f67fc7b9f9d8b576fa8c46157245016d3 /src/nvim/ui_bridge.c | |
parent | 426399c2c4dd325bf00ffe1f410c1b9fd5053692 (diff) | |
parent | 492ac04f7e0ffcc5011d3604b234d149f8b0bb91 (diff) | |
download | rneovim-3855204f5860ff2a66133541ff7593f0c2606a75.tar.gz rneovim-3855204f5860ff2a66133541ff7593f0c2606a75.tar.bz2 rneovim-3855204f5860ff2a66133541ff7593f0c2606a75.zip |
Merge #6917 'UIEnter, UILeave'
Diffstat (limited to 'src/nvim/ui_bridge.c')
-rw-r--r-- | src/nvim/ui_bridge.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nvim/ui_bridge.c b/src/nvim/ui_bridge.c index 91cd458702..9a1988739c 100644 --- a/src/nvim/ui_bridge.c +++ b/src/nvim/ui_bridge.c @@ -63,6 +63,7 @@ UI *ui_bridge_attach(UI *ui, ui_main_fn ui_main, event_scheduler scheduler) rv->bridge.set_icon = ui_bridge_set_icon; rv->bridge.option_set = ui_bridge_option_set; rv->bridge.raw_line = ui_bridge_raw_line; + rv->bridge.inspect = ui_bridge_inspect; rv->scheduler = scheduler; for (UIExtension i = 0; (int)i < kUIExtCount; i++) { @@ -85,7 +86,8 @@ UI *ui_bridge_attach(UI *ui, ui_main_fn ui_main, event_scheduler scheduler) } uv_mutex_unlock(&rv->mutex); - ui_attach_impl(&rv->bridge); + ui_attach_impl(&rv->bridge, 0); + return &rv->bridge; } @@ -106,7 +108,8 @@ static void ui_bridge_stop(UI *b) { // Detach bridge first, so that "stop" is the last event the TUI loop // receives from the main thread. #8041 - ui_detach_impl(b); + ui_detach_impl(b, 0); + UIBridgeData *bridge = (UIBridgeData *)b; bool stopped = bridge->stopped = false; UI_BRIDGE_CALL(b, stop, 1, b); @@ -213,3 +216,8 @@ static void ui_bridge_option_set_event(void **argv) api_free_object(value); xfree(argv[3]); } + +static void ui_bridge_inspect(UI *ui, Dictionary *info) +{ + PUT(*info, "chan", INTEGER_OBJ(0)); +} |