mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
refactor(signs): more efficient signcol calc
When iterating signs to calculate the sign column, stop iterating when we reach the maximum configured from 'signcolumn'.
This commit is contained in:
@@ -794,7 +794,7 @@ static void win_update(win_T *wp, Providers *providers)
|
||||
// If we can compute a change in the automatic sizing of the sign column
|
||||
// under 'signcolumn=auto:X' and signs currently placed in the buffer, better
|
||||
// figuring it out here so we can redraw the entire screen for it.
|
||||
buf_signcols(buf);
|
||||
win_signcol_count(wp);
|
||||
|
||||
type = wp->w_redr_type;
|
||||
|
||||
|
Reference in New Issue
Block a user