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:
Lukas Reineke
2020-12-25 01:33:52 +09:00
committed by GitHub
parent 6c28bddfad
commit 88ae03bcdb
5 changed files with 133 additions and 31 deletions

View File

@@ -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;