diff src/globals.h @ 15271:a6319aca721b v8.1.0644

patch 8.1.0644: finding next sign ID is inefficient commit https://github.com/vim/vim/commit/6436cd83f90a0efc326798792e49e8ff96a43dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 27 00:28:33 2018 +0100 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 https://github.com/vim/vim/issues/3717)
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Dec 2018 00:30:06 +0100
parents 95678f27a704
children 54457fc4af0b
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -609,7 +609,7 @@ EXTERN buf_T	*curbuf INIT(= NULL);	/* cu
 #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