mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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:
@@ -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--;
|
||||
|
||||
|
Reference in New Issue
Block a user