perf(ui): avoid ui_flush() work in headless mode

This commit is contained in:
bfredl
2022-06-25 19:00:35 +02:00
parent 45bee1dafd
commit be3d2f5125
2 changed files with 11 additions and 1 deletions

View File

@@ -503,6 +503,9 @@ handle_T ui_cursor_grid(void)
void ui_flush(void)
{
if (!ui_active()) {
return;
}
cmdline_ui_flush();
win_ui_flush();
msg_ext_ui_flush();