aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-11-28 05:40:18 +0100
committerLewis Russell <me@lewisr.dev>2023-11-29 10:17:15 +0000
commitf4001d27efae44c6c07678ad2c72eed5f1a25ea8 (patch)
treecbcbeb8bdccd1d56860ef94ee30f669602624611 /src/nvim/buffer_defs.h
parent584c6c25ccfc5d13ffa0a4bd6efa467beb3987fe (diff)
downloadrneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.tar.gz
rneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.tar.bz2
rneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.zip
perf(column): only invalidate lines affected by added sign
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index e0119d2add..e59539f900 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -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