mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:8.1.0632: using sign group names is inefficient
Problem: Using sign group names is inefficient.
Solution: Store group names in a hash table and use a reference to them.
Also remove unnecessary use of ":exe" from the tests. (Yegappan
Lakshmanan, closes vim/vim#3715)
7a2d9892b7
This commit is contained in:
@@ -6072,7 +6072,7 @@ void ex_sign(exarg_T *eap)
|
||||
|
||||
if (bufarg && buf == NULL) {
|
||||
EMSG2(_("E158: Invalid buffer name: %s"), arg);
|
||||
} else if (id <= 0 && !(idx == SIGNCMD_UNPLACE && id == -2)) {
|
||||
} else if (id <= 0 && idx == SIGNCMD_PLACE) {
|
||||
if ((group == NULL) && (lnum >= 0 || sign_name != NULL)) {
|
||||
EMSG(_(e_invarg));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user