aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-09 17:30:23 +0200
committerAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-26 19:32:31 +0200
commit4f844c587c18b12ffb9253f461557a8a8da258af (patch)
tree46f45133413df429bf0a96e860475882e0f4c5e6 /src/nvim/ex_cmds.c
parentfb9abd7d993cf2166b73810c7621f432bedd325d (diff)
downloadrneovim-4f844c587c18b12ffb9253f461557a8a8da258af.tar.gz
rneovim-4f844c587c18b12ffb9253f461557a8a8da258af.tar.bz2
rneovim-4f844c587c18b12ffb9253f461557a8a8da258af.zip
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) https://github.com/vim/vim/commit/7a2d9892b7158edf8dc48e9bcaaae70a40787b37
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 4a589ec6e5..82b16a721e 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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 {