aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-09 09:51:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-13 21:21:06 -0300
commit2db40492749ca7c20b42368a04729765e44eeda7 (patch)
tree086077535f6c6af515fc67f52caa8e2f430bfbab /src
parenta282d06a678f2236e29d1dadb2a3f35f76c5ea3d (diff)
downloadrneovim-2db40492749ca7c20b42368a04729765e44eeda7.tar.gz
rneovim-2db40492749ca7c20b42368a04729765e44eeda7.tar.bz2
rneovim-2db40492749ca7c20b42368a04729765e44eeda7.zip
ui: Fix `:suspend` command for remote UIs
Forward the command to the remote UI and flush immediately. The semantics/handling is UI-specific.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/msgpack_rpc/remote_ui.c4
-rw-r--r--src/nvim/ui.c1
2 files changed, 3 insertions, 2 deletions
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();
}