diff options
| author | Oliver Kiddle <opk@zsh.org> | 2016-07-21 17:48:21 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2016-07-21 17:49:13 +0200 |
| commit | 82119d8d1723667ddc77d760d2be448beef7c972 (patch) | |
| tree | 1fca2a36c82e87a5b9cf5103309a263442827324 /Completion | |
| parent | 38894: completion for virt-admin and libvirt client/server IDs/names (diff) | |
| download | zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.gz zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.bz2 zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.lz zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.xz zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.zst zsh-82119d8d1723667ddc77d760d2be448beef7c972.zip | |
38904: fix return status in _normal and functions erroneously using it for default completion
Diffstat (limited to 'Completion')
| -rw-r--r-- | Completion/Base/Core/_normal | 4 | ||||
| -rw-r--r-- | Completion/Unix/Command/_iostat | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_top | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Base/Core/_normal b/Completion/Base/Core/_normal index 539b3781f..dd607d2b2 100644 --- a/Completion/Base/Core/_normal +++ b/Completion/Base/Core/_normal @@ -30,9 +30,9 @@ if [[ CURRENT -eq 1 ]]; then curcontext="${curcontext%:*:*}:-command-:" comp="$_comps[-command-]" - [[ -n "$comp" ]] && eval "$comp" && ret=0 + [[ -n "$comp" ]] && eval "$comp" && return - return ret + return 1 fi _set_command diff --git a/Completion/Unix/Command/_iostat b/Completion/Unix/Command/_iostat index 7dc33a1fc..6653a5da4 100644 --- a/Completion/Unix/Command/_iostat +++ b/Completion/Unix/Command/_iostat @@ -129,4 +129,4 @@ if (( $#args )); then return fi -_normal +_default diff --git a/Completion/Unix/Command/_top b/Completion/Unix/Command/_top index 10c0e3481..0259c236a 100644 --- a/Completion/Unix/Command/_top +++ b/Completion/Unix/Command/_top @@ -98,4 +98,4 @@ if (( $#specs )); then return fi -_normal +_default |
