diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-03 16:38:21 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-03 16:38:21 +0000 |
commit | 93458d9148e9b2c8d058fafea46a5a73aa4ee27d (patch) | |
tree | 6a0abc1357584bab1a094c5379eed3eac2278b96 /Completion | |
parent | 2a1ba77bc67502c0b8e75cf37275bc58c1d423bd (diff) | |
download | zsh-93458d9148e9b2c8d058fafea46a5a73aa4ee27d.tar.gz zsh-93458d9148e9b2c8d058fafea46a5a73aa4ee27d.tar.xz zsh-93458d9148e9b2c8d058fafea46a5a73aa4ee27d.zip |
zsh-workers/8874
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/_arguments | 3 | ||||
-rw-r--r-- | Completion/User/_use_lo | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 0170ce307..591cb6ac7 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -71,6 +71,7 @@ if (( long )); then lopts=("--${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(${~words[1]} --help 2>&1)//\[--/ --}:#[ ]#-*}//,/ }}:#[ ]#--*}#*--}%%[], ]*}:#}") + lopts=( "${(@)lopts:#--}" ) # Now remove all ignored options ... @@ -163,7 +164,7 @@ done _style -s options auto-description autod -if comparguments -i "$autod" "$@"; then +if (( $# )) && comparguments -i "$autod" "$@"; then local nm="$compstate[nmatches]" action noargs aret expl local local next direct odirect equal single match matched ws tmp1 tmp2 tmp3 local opts subc prefix suffix diff --git a/Completion/User/_use_lo b/Completion/User/_use_lo index 5f2210997..7386df6da 100644 --- a/Completion/User/_use_lo +++ b/Completion/User/_use_lo @@ -3,4 +3,4 @@ # This is for GNU-like commands which understand the --help option, # but which do not otherwise require special completion handling. -_arguments || _default +_arguments -- || _default |