Mercurial > vim
diff src/evalfunc.c @ 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 | 8d7a3fd70ff4 |
children | 54457fc4af0b |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4434,7 +4434,7 @@ get_buffer_signs(buf_T *buf, list_T *l) signlist_T *sign; dict_T *d; - FOR_ALL_SIGNS_IN_BUF(buf) + FOR_ALL_SIGNS_IN_BUF(buf, sign) { if ((d = sign_get_info(sign)) != NULL) list_append_dict(l, d); @@ -11415,6 +11415,8 @@ f_sign_getplaced(typval_T *argvars, typv group = tv_get_string_chk(&di->di_tv); if (group == NULL) return; + if (*group == '\0') // empty string means global group + group = NULL; } } }