summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-07-21 17:48:21 +0200
committerOliver Kiddle <opk@zsh.org>2016-07-21 17:49:13 +0200
commit82119d8d1723667ddc77d760d2be448beef7c972 (patch)
tree1fca2a36c82e87a5b9cf5103309a263442827324 /Completion/Base
parentf117edfabebda4c21622ff38ea9e55bf01b2f8ab (diff)
downloadzsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.gz
zsh-82119d8d1723667ddc77d760d2be448beef7c972.tar.xz
zsh-82119d8d1723667ddc77d760d2be448beef7c972.zip
38904: fix return status in _normal and functions erroneously using it for default completion
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_normal4
1 files changed, 2 insertions, 2 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