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/_links | |
parent | dd54fb249881fa882319cd2642780dcebb8d9f7c (diff) | |
download | zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.gz zsh-a267832ddf4150652fde3936858841bb2edbd9ae.tar.xz zsh-a267832ddf4150652fde3936858841bb2edbd9ae.zip |
18631: returning too early breaks prefix-needed style set to false
Diffstat (limited to 'Completion/Unix/Command/_links')
-rw-r--r-- | Completion/Unix/Command/_links | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links index adb0651f4..7d8a83a23 100644 --- a/Completion/Unix/Command/_links +++ b/Completion/Unix/Command/_links @@ -1,6 +1,6 @@ #compdef links -local curcontext="$curcontext" state line +local curcontext="$curcontext" state line ret=1 typeset -A opt_args _arguments -C \ @@ -25,8 +25,10 @@ _arguments -C \ '(-help)-source[dump the source page]' \ '(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:secs:' \ '(-help)-version[prints the links version number and exit]' \ - ':url:->html' && return 0 + ':url:->html' && ret=0 if [[ "$state" = html ]]; then - _alternative 'files:file:_files -g "*.x#html"' 'urls:url:_urls' + _alternative 'files:file:_files -g "*.x#html"' 'urls:url:_urls' && ret=0 fi + +return ret |