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/_gpg | |
| 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/_gpg')
| -rw-r--r-- | Completion/Unix/Command/_gpg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_gpg b/Completion/Unix/Command/_gpg index 76594d229..32a51cb08 100644 --- a/Completion/Unix/Command/_gpg +++ b/Completion/Unix/Command/_gpg @@ -1,6 +1,6 @@ #compdef gpg gpgv -local curcontext="$curcontext" state line expl +local curcontext="$curcontext" state line expl ret=1 typeset -A opt_args _arguments -C -s -S -A "-*" \ @@ -127,7 +127,7 @@ _arguments -C -s -S -A "-*" \ --enable-special-filenames --no-expensive-trust-checks --group:name=value \ --preserve-permissions --personal-{cipher,digest,compress}-preferences:string \ --default-preference-list:string \ - '*:args:->args' && return + '*:args:->args' && ret=0 if [[ $state = args ]]; then if (( ${+opt_args[--export]} || ${+opt_args[--list-keys]} )); then @@ -154,4 +154,4 @@ case "$state" in ;; esac -return 1 +return ret |
