summaryrefslogtreecommitdiffstats
path: root/Completion/Base
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:25:12 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:25:12 +0000
commite7a0ef2db10c24b800e8d9b0154c24f766e916d5 (patch)
tree00b0bf3b967668cc92d2fb5216891018675a7f8a /Completion/Base
parentzsh-workers/8715 (diff)
downloadzsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.gz
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.bz2
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.lz
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.xz
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.zst
zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.zip
zsh-workers/8716
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arguments9
1 files changed, 5 insertions, 4 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 5f3d83a20..43f5bb878 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -24,7 +24,7 @@ if (( long )); then
name="${name//[^a-zA-Z0-9_]/_}"
if (( ! ${(P)+name} )); then
- local iopts sopts pattern tmpo cur opt cache
+ local iopts sopts pattern tmpo cur cache
typeset -U lopts
cache=()
@@ -287,8 +287,7 @@ if comparguments -i "$autod" "$@"; then
fi
fi
if [[ -n "$opts" && -z "$aret$matched" &&
- nm -ne compstate[nmatches] ]] &&
- _requested arguments; then
+ nm -eq compstate[nmatches] ]]; then
local prefix suffix
@@ -303,8 +302,10 @@ if comparguments -i "$autod" "$@"; then
SUFFIX="$suffix"
IPREFIX="${IPREFIX}${equal[1]%%:*}="
matched=yes
- comparguments -L "$equal[1]" descr action subc
+
+ comparguments -L "${equal[1]%%:*}" descr action subc
curcontext="${oldcontext}:$subc"
+
continue
fi
fi