about summary refs log tree commit diff
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
parent0d8d202ff5491382a7576508d80166f89aac4157 (diff)
downloadzsh-7b2bbf51f20552a07beb5630042a8a881db00e78.tar.gz
zsh-7b2bbf51f20552a07beb5630042a8a881db00e78.tar.xz
zsh-7b2bbf51f20552a07beb5630042a8a881db00e78.zip
21310: pass an array to compadd in _global_tags
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_global_tags7
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d75638a68..83bc30018 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-06-08  Doug Kearns  <djkea2@gus.gscit.monash.edu.au>
 
+	* 21310: Completion/Unix/Type/_global_tags: pass an array to compadd;
+	redirect stderr to /dev/null when generating matches with _call_program
+
 	* 21302: Completion/Linux/Command/_pkgtool,
 	Completion/Unix/Command/_ant, Completion/Unix/Command/_bogofilter,
 	Completion/Unix/Command/_cdrecord, Completion/Unix/Command/_chkconfig,
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