Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _global_tags fix
- X-seq: zsh-workers 21310
- From: Doug Kearns <dougkearns@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _global_tags fix
- Date: Tue, 7 Jun 2005 02:21:35 +1000
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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