mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +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:
@@ -611,7 +611,7 @@ int showmode(void)
|
||||
// the ruler is after the mode message and must be redrawn
|
||||
win_T *last = lastwin_nofloating();
|
||||
if (redrawing() && last->w_status_height == 0 && global_stl_height() == 0) {
|
||||
win_redr_ruler(last, true);
|
||||
win_redr_ruler(last);
|
||||
}
|
||||
|
||||
redraw_cmdline = false;
|
||||
|
Reference in New Issue
Block a user