diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-06-25 09:03:04 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-06-25 09:03:04 +0000 |
| commit | a267832ddf4150652fde3936858841bb2edbd9ae (patch) | |
| tree | 961f0cbcaf8dbdaf2ff2e1a5409d644158f592bf /Completion/Unix/Command/_java | |
| parent | 18628: update completion of reportbug and querybts to modern usage. (diff) | |
| download | zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.gz zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.bz2 zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.lz zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.xz zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.zst zsh-a267832ddf4150652fde3936858841bb2edbd9ae.zip | |
18631: returning too early breaks prefix-needed style set to false
Diffstat (limited to 'Completion/Unix/Command/_java')
| -rw-r--r-- | Completion/Unix/Command/_java | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/Completion/Unix/Command/_java b/Completion/Unix/Command/_java index 992960f59..a9e620ab4 100644 --- a/Completion/Unix/Command/_java +++ b/Completion/Unix/Command/_java @@ -1,6 +1,6 @@ #compdef javac java javadoc appletviewer jar jdb javah javap extcheck rmic rmiregistry rmid serialvar native2ascii keytool jarsigner policytool -local expl tmp jdb_args jar_cmd match basedir +local expl tmp jdb_args jar_cmd match basedir ret=1 local curcontext="$curcontext" state line jf typeset -A opt_args tmpassoc @@ -89,7 +89,7 @@ javadoc) '-helpfile[specify alternative help link]:helpfile path/filename:' \ '-stylesheet[specify alternative HTML style sheet]:stylesheet path/filename:' \ '-docencoding[specify character encoding for output HTML files]:encoding:->encoding' \ - '*:package name, source file or @list:->docsrc' && return 0 + '*:package name, source file or @list:->docsrc' && ret=0 ;; appletviewer) @@ -112,7 +112,7 @@ jar) 'v[verbose mode]' \ 'm[specify manifest file]' \ '0[store only without using ZIP compression]' \ - 'M[do not create manifest file]' + 'M[do not create manifest file]' && return else jar_cmd="${words[2]#-}" tmpassoc=( @@ -186,7 +186,7 @@ rmic) rmiregistry) if (( CURRENT == 2 )); then - _wanted ports expl 'port to listen' _ports + _wanted ports expl 'port to listen' _ports && return else _message 'no more arguments' fi @@ -359,11 +359,11 @@ case "$state" in debug) if [[ -prefix :*, ]]; then compset -P : - _values -s , "debug info" lines vars source + _values -s , "debug info" lines vars source && return else _description debuginfo expl "debug info" - compadd -P: "$expl[@]" none - compadd -P: -qS, "$expl[@]" lines vars source + compadd -P: "$expl[@]" none && ret=0 + compadd -P: -qS, "$expl[@]" lines vars source && ret=0 fi ;; @@ -372,12 +372,12 @@ classpath|sourcepath|bootstrapclasspath|docletpath) compset -S ':*' _alternative \ "classpath:$state:_path_files -qS: -g '*.(jar|zip)'" \ - "classpath:$state:_path_files -r': ' -/" + "classpath:$state:_path_files -r': ' -/" && return ;; extdirs) compset -P '*:' - _path_files -/ + _path_files -/ && return ;; encoding) @@ -540,7 +540,7 @@ encoding) property) if compset -P '*='; then - _default + _default && return else _message -e property-names 'property name' fi @@ -548,30 +548,30 @@ property) |
