mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
feat(sign):Allow signs to be 0 width (#13290)
Adds support for signs to be 0 cells wide. If all signs of the same group have no width, the signcolumn will not be rendered for that group.
This commit is contained in:
@@ -5479,7 +5479,9 @@ int buf_signcols(buf_T *buf)
|
||||
curline = sign->lnum;
|
||||
linesum = 0;
|
||||
}
|
||||
linesum++;
|
||||
if (sign->has_text_or_icon) {
|
||||
linesum++;
|
||||
}
|
||||
}
|
||||
if (linesum > buf->b_signcols_max) {
|
||||
buf->b_signcols_max = linesum;
|
||||
|
Reference in New Issue
Block a user