Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _arguments
- X-seq: zsh-workers 9452
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _arguments
- Date: Fri, 28 Jan 2000 10:02:37 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Doing diff --exclude=<TAB> showed something I would like to call a
thinko in _arguments: it expanded the option to --exclude-from,
completed after it, and also showed the message for --exclude=.
This makes it show only the message.
Bye
Sven
diff -ru ../z.old/Completion/Base/_arguments Completion/Base/_arguments
--- ../z.old/Completion/Base/_arguments Thu Jan 27 17:07:16 2000
+++ Completion/Base/_arguments Fri Jan 28 09:57:23 2000
@@ -258,7 +258,7 @@
fi
fi
- if [[ -z "$matched" ]] && _requested options &&
+ if [[ -z "$matched$mesg" ]] && _requested options &&
{ ! zstyle -t ":completion${curcontext}:options" prefix-needed ||
[[ "$origpre" = [-+]* ||
( -z "$aret$mesg" && nm -eq compstate[nmatches] ) ]] } ; then
@@ -301,7 +301,7 @@
IPREFIX="$previpre"
fi
done
- if [[ -n "$opts" && -z "$aret$matched" &&
+ if [[ -n "$opts" && -z "$aret$matched$mesg" &&
nm -eq compstate[nmatches] ]]; then
PREFIX="$origpre"
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author