about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2005-06-08 06:10:43 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2005-06-08 06:10:43 +0000
commit7b2bbf51f20552a07beb5630042a8a881db00e78 (patch)
tree7350d6ff91f7834894379528bdf076816dc3f6ee /Completion
parent0d8d202ff5491382a7576508d80166f89aac4157 (diff)
downloadzsh-7b2bbf51f20552a07beb5630042a8a881db00e78.tar.gz
zsh-7b2bbf51f20552a07beb5630042a8a881db00e78.tar.xz
zsh-7b2bbf51f20552a07beb5630042a8a881db00e78.zip
21310: pass an array to compadd in _global_tags
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_global_tags7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_global_tags b/Completion/Unix/Type/_global_tags
index a877ce86b..fcda28dfb 100644
--- a/Completion/Unix/Type/_global_tags
+++ b/Completion/Unix/Type/_global_tags
@@ -1,6 +1,7 @@
 #autoload
 
-local expl
+local expl tags
 
-_wanted global-tags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' \
-    -a "$@" - $(_call_program global-tags global --completion $PREFIX)
+tags=( $(_call_program global-tags global --completion $PREFIX 2>/dev/null) )
+
+_wanted global-tags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - tags