ui: reserve the right to split a screen redraw into multiple batches.

This commit is contained in:
Björn Linse
2018-09-29 13:28:53 +02:00
parent 43823acae2
commit bab3b0ad45
3 changed files with 38 additions and 13 deletions

View File

@@ -511,6 +511,7 @@ static void remote_ui_flush(UI *ui)
if (!ui->ui_ext[kUILinegrid]) {
remote_ui_cursor_goto(ui, data->cursor_row, data->cursor_col);
}
push_call(ui, "flush", (Array)ARRAY_DICT_INIT);
rpc_send_event(data->channel_id, "redraw", data->buffer);
data->buffer = (Array)ARRAY_DICT_INIT;
}