Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _global_tags fix



A fix for _global_tags which seems to have been out of action for a
while. I guess there aren't too many zsh/global users. ;-)

Regards,
Doug

Index: Completion/Unix/Type/_global_tags
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_global_tags,v
retrieving revision 1.1
diff -u -r1.1 _global_tags
--- Completion/Unix/Type/_global_tags	31 Jul 2003 15:27:52 -0000	1.1
+++ Completion/Unix/Type/_global_tags	6 Jun 2005 16:10:29 -0000
@@ -1,4 +1,7 @@
 #autoload
 
-_wanted global-tags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' \
-    -a "$@" - $(_call_program global-tags global --completion $PREFIX)
+local expl tags
+
+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



Messages sorted by: Reverse Date, Date, Thread, Author