perf(column): only invalidate lines affected by added sign

This commit is contained in:
Luuk van Baal
2023-11-28 05:40:18 +01:00
committed by Lewis Russell
parent 584c6c25cc
commit f4001d27ef
5 changed files with 64 additions and 76 deletions

View File

@@ -706,9 +706,10 @@ struct file_buffer {
struct {
int size; // last calculated number of sign columns
bool valid; // calculated sign columns is valid
int max; // maximum value size is valid for.
linenr_T sentinel; // a line number which is holding up the signcolumn
int max; // Maximum value size is valid for.
linenr_T invalid_top; // first invalid line number that needs to be checked
linenr_T invalid_bot; // last invalid line number that needs to be checked
} b_signcols;
Terminal *terminal; // Terminal instance associated with the buffer