forked from aniani/vim
patch 8.1.0644: finding next sign ID is inefficient
Problem: Finding next sign ID is inefficient. Solution: Add next_sign_id. (Yegappan Lakshmanan, closes #3717)
This commit is contained in:
@@ -609,7 +609,7 @@ EXTERN buf_T *curbuf INIT(= NULL); /* currently active buffer */
|
||||
#define FOR_ALL_BUFFERS(buf) for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
||||
|
||||
// Iterate through all the signs placed in a buffer
|
||||
#define FOR_ALL_SIGNS_IN_BUF(buf) \
|
||||
#define FOR_ALL_SIGNS_IN_BUF(buf, sign) \
|
||||
for (sign = buf->b_signlist; sign != NULL; sign = sign->next)
|
||||
|
||||
/* Flag that is set when switching off 'swapfile'. It means that all blocks
|
||||
|
Reference in New Issue
Block a user