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)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 06df5af..52b669a 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -8180,7 +8180,7 @@
{
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));