perf(statusline): UI elements are always redrawn on K_EVENT

Problem:    'statusline'-format UI elements are redrawn on each K_EVENT.
Solution:   Only redraw UI elements when something relevant has changed.
This commit is contained in:
Luuk van Baal
2023-03-08 12:36:03 +01:00
parent 1fb585a9db
commit fe11079721
7 changed files with 167 additions and 151 deletions

View File

@@ -907,6 +907,9 @@ theend:
ui_call_cmdline_hide(ccline.level);
msg_ext_clear_later();
}
if (!cmd_silent) {
status_redraw_all(); // redraw to show mode change
}
cmdline_level--;