refactor(sign): store 'signcolumn' width range when it is set

Problem:  Minimum and maximum signcolumn width is determined each redraw.
Solution: Determine and store 'signcolumn' range when option is set.
This commit is contained in:
Luuk van Baal
2023-11-20 02:27:16 +01:00
committed by Lewis Russell
parent fec5e3ab24
commit 585eeacb24
7 changed files with 56 additions and 69 deletions

View File

@@ -1206,6 +1206,8 @@ struct window_S {
int w_nrwidth; // width of 'number' and 'relativenumber'
// column being used
int w_scwidth; // width of 'signcolumn'
int w_minscwidth; // minimum width or SCL_NO/SCL_NUM
int w_maxscwidth; // maximum width or SCL_NO/SCL_NUM
// === end of cached values ===