mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #3715)
This commit is contained in:
@@ -8180,7 +8180,7 @@ ex_sign(exarg_T *eap)
|
||||
{
|
||||
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));
|
||||
|
Reference in New Issue
Block a user