From 2db40492749ca7c20b42368a04729765e44eeda7 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 9 Jan 2015 09:51:11 -0300 Subject: ui: Fix `:suspend` command for remote UIs Forward the command to the remote UI and flush immediately. The semantics/handling is UI-specific. --- src/nvim/msgpack_rpc/remote_ui.c | 4 ++-- src/nvim/ui.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/msgpack_rpc/remote_ui.c b/src/nvim/msgpack_rpc/remote_ui.c index 6a638df61c..8350ae252b 100644 --- a/src/nvim/msgpack_rpc/remote_ui.c +++ b/src/nvim/msgpack_rpc/remote_ui.c @@ -322,6 +322,6 @@ static void remote_ui_flush(UI *ui) static void remote_ui_suspend(UI *ui) { - UIData *data = ui->data; - remote_ui_disconnect(data->channel_id); + Array args = ARRAY_DICT_INIT; + push_call(ui, "suspend", args); } diff --git a/src/nvim/ui.c b/src/nvim/ui.c index cb2f397dbb..3e5639d23e 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -119,6 +119,7 @@ void ui_suspend(void) { if (abstract_ui) { UI_CALL(suspend); + UI_CALL(flush); } else { mch_suspend(); } -- cgit