vim-patch:8.1.0614: placing signs can be complicated

Problem:    Placing signs can be complicated.
Solution:   Add functions for defining and placing signs.  Introduce a group
            name to avoid different plugins using the same signs. (Yegappan
            Lakshmanan, closes vim/vim#3652)
162b71479b
This commit is contained in:
Andrej Zieger
2019-05-07 08:26:09 +02:00
parent fc7861f0fa
commit fb9abd7d99
11 changed files with 1967 additions and 213 deletions

View File

@@ -482,6 +482,11 @@ EXTERN buf_T *curbuf INIT(= NULL); // currently active buffer
#define FOR_ALL_BUFFERS_BACKWARDS(buf) \
for (buf_T *buf = lastbuf; buf != NULL; buf = buf->b_prev)
// Iterate through all the signs placed in a buffer
#define FOR_ALL_SIGNS_IN_BUF(buf) \
for (sign = buf->b_signlist; sign != NULL; sign = sign->next)
/*
* List of files being edited (global argument list). curwin->w_alist points
* to this when the window is using the global argument list.