aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-02-20 17:26:39 +0000
committerLewis Russell <lewis6991@gmail.com>2022-02-24 22:35:59 +0000
commite67cd22c38493d4dff90f6afa17bfeacd0ba953d (patch)
tree16629d4a7023183adf9d190674f99d027d7ef1e0 /src/nvim/buffer_defs.h
parentfdea15723fab6a3ee96218f13669d9f2e0a6d6d7 (diff)
downloadrneovim-e67cd22c38493d4dff90f6afa17bfeacd0ba953d.tar.gz
rneovim-e67cd22c38493d4dff90f6afa17bfeacd0ba953d.tar.bz2
rneovim-e67cd22c38493d4dff90f6afa17bfeacd0ba953d.zip
fix(signcol): handle edge case with maximum value
50250542 failed to consider that the maximum passed to buf_signcols is window scoped whereas the signcols value is buffer scoped. This can lead to a bug where the signcolumn becomes incorrect if: - global signcolumn is set to auto:N - signcolumn in a window is changed locally to auto:M where M > N - the buffer has a line with M or greater signs.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 7ae5df164f..5d4f8d112c 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -864,6 +864,7 @@ struct file_buffer {
sign_entry_T *b_signlist; // list of placed signs
int b_signcols; // last calculated number of sign columns
bool b_signcols_valid; // calculated sign columns is valid
+ int b_signcols_max; // Maximum value b_signcols is valid for.
Terminal *terminal; // Terminal instance associated with the buffer