about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-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