mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ui: Fix :suspend
command for remote UIs
Forward the command to the remote UI and flush immediately. The semantics/handling is UI-specific.
This commit is contained in:
parent
a282d06a67
commit
2db4049274
@ -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);
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ void ui_suspend(void)
|
||||
{
|
||||
if (abstract_ui) {
|
||||
UI_CALL(suspend);
|
||||
UI_CALL(flush);
|
||||
} else {
|
||||
mch_suspend();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user