aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2021-04-05 11:16:44 +0100
committerGitHub <noreply@github.com>2021-04-05 06:16:44 -0400
commit9fbeaf7771db1855414099c75b75793be8776032 (patch)
tree3553aaaf9ce37dd63ba6cc0fff25c82706ff86ff /src/nvim/buffer.c
parent9b2d4ff625c59961288dfb2708cc94516667b2ad (diff)
downloadrneovim-9fbeaf7771db1855414099c75b75793be8776032.tar.gz
rneovim-9fbeaf7771db1855414099c75b75793be8776032.tar.bz2
rneovim-9fbeaf7771db1855414099c75b75793be8776032.zip
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.
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index c7ec3a456c..c98f2786c2 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -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++;
}
}