summaryrefslogtreecommitdiffstats
path: root/Completion/Base/_arguments
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:07:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:07:09 +0000
commite6cc1ece7fed93fd31ca4e7f7726de034ede887c (patch)
tree93087d3edf5eb27836ba9bbdfb687b416fb7c629 /Completion/Base/_arguments
parentzsh-workers/9722 (diff)
downloadzsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.gz
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.bz2
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.lz
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.xz
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.zst
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.zip
zsh-workers/9731
Diffstat (limited to 'Completion/Base/_arguments')
-rw-r--r--Completion/Base/_arguments7
1 files changed, 3 insertions, 4 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index ddd9d4c06..50c368b11 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -17,9 +17,8 @@ if (( long )); then
fi
name=${~words[1]}
- if [[ "$name" != /* ]]; then
- tmp="$PWD/$name"
- fi
+ [[ "$name" != /* ]] && tmp="$PWD/$name"
+
name="_args_cache_${name}"
name="${name//[^a-zA-Z0-9_]/_}"
@@ -255,7 +254,7 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
fi
if [[ -z "$matched" ]] && _requested options &&
- { ! zstyle -t ":completion:${curcontext}:options" prefix-needed ||
+ { ! zstyle -T ":completion:${curcontext}:options" prefix-needed ||
[[ "$origpre" = [-+]* ||
( -z "$aret$mesg" && nm -eq compstate[nmatches] ) ]] } ; then
local prevpre="$PREFIX" previpre="$IPREFIX"