diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-07-12 09:01:40 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-07-12 09:01:40 +0000 |
commit | d05b3e675ee6ca508ac242d2760ffc49a55753ac (patch) | |
tree | 0058ca925e3b10db0d069facc474614bd51d2463 | |
parent | 6c1110da3264ca3b01cc4d80ac7b07de1f02067c (diff) | |
download | zsh-d05b3e675ee6ca508ac242d2760ffc49a55753ac.tar.gz zsh-d05b3e675ee6ca508ac242d2760ffc49a55753ac.tar.xz zsh-d05b3e675ee6ca508ac242d2760ffc49a55753ac.zip |
check if options were completed (12225)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Linux/_rpm | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b9d11e4ff..13cad62b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-07-12 Sven Wischnowsky <wischnow@zsh.org> + + * 12225: Completion/Linux/_rpm: check if options were completed + 2000-07-11 Peter Stephenson <pws@cambridgesiliconradio.com> * Src/exec.c: 12220: print error message for unfound autoload diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm index e17fa9c5c..e047af6d6 100644 --- a/Completion/Linux/_rpm +++ b/Completion/Linux/_rpm @@ -41,7 +41,7 @@ # Used by `_arguments', made local here. -local curcontext="$curcontext" state lstate line +local curcontext="$curcontext" state lstate line nm="$compstate[nmatches]" typeset -A opt_args state='' @@ -246,6 +246,8 @@ while [[ -n "$state" ]]; do _files "$expl[@]" -/ && ret=0 ;; esac + + [[ ret -eq 0 || $nm -ne $compstate[nmatches] ]] && return 0 done return ret |