vim-patch:8.1.2205: sign entry structure has confusing name (#14289)

Problem:    Sign entry structure has confusing name.
Solution:   Rename signlist_T to sign_entry_T and prefix se_ to the fields.
This commit is contained in:
Lewis Russell
2021-04-05 11:16:44 +01:00
committed by GitHub
parent 9b2d4ff625
commit 9fbeaf7771
6 changed files with 173 additions and 174 deletions

View File

@@ -5489,20 +5489,20 @@ bool find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp)
int buf_signcols(buf_T *buf)
{
if (buf->b_signcols_max == -1) {
signlist_T *sign; // a sign in the signlist
sign_entry_T *sign; // a sign in the sign list
buf->b_signcols_max = 0;
int linesum = 0;
linenr_T curline = 0;
FOR_ALL_SIGNS_IN_BUF(buf, sign) {
if (sign->lnum > curline) {
if (sign->se_lnum > curline) {
if (linesum > buf->b_signcols_max) {
buf->b_signcols_max = linesum;
}
curline = sign->lnum;
curline = sign->se_lnum;
linesum = 0;
}
if (sign->has_text_or_icon) {
if (sign->se_has_text_or_icon) {
linesum++;
}
}