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)
|
static void remote_ui_suspend(UI *ui)
|
||||||
{
|
{
|
||||||
UIData *data = ui->data;
|
Array args = ARRAY_DICT_INIT;
|
||||||
remote_ui_disconnect(data->channel_id);
|
push_call(ui, "suspend", args);
|
||||||
}
|
}
|
||||||
|
@ -119,6 +119,7 @@ void ui_suspend(void)
|
|||||||
{
|
{
|
||||||
if (abstract_ui) {
|
if (abstract_ui) {
|
||||||
UI_CALL(suspend);
|
UI_CALL(suspend);
|
||||||
|
UI_CALL(flush);
|
||||||
} else {
|
} else {
|
||||||
mch_suspend();
|
mch_suspend();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user