about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-29 08:20:32 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-29 08:20:32 +0000
commita9d46be89d3470fb0630a84e66a9a6822da8bbce (patch)
tree9278ba679ebb9e540c457ba43c11bd965940e183
parent4bf681950b37f9b185e7d1628a07da90acdf9293 (diff)
downloadzsh-a9d46be89d3470fb0630a84e66a9a6822da8bbce.tar.gz
zsh-a9d46be89d3470fb0630a84e66a9a6822da8bbce.tar.xz
zsh-a9d46be89d3470fb0630a84e66a9a6822da8bbce.zip
try to return the right value (12119)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_complete1
-rw-r--r--Completion/Core/_normal1
3 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3a7dd340..50b04d0e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-06-29  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 12119: Completion/Core/_complete, Completion/Core/_normal: try
+ 	to return the right value
+	
 	* 12118: Completion/Core/_expand: don't expand partially typed
  	parameter expansions
 	
diff --git a/Completion/Core/_complete b/Completion/Core/_complete
index c8c7b3d96..06d212a46 100644
--- a/Completion/Core/_complete
+++ b/Completion/Core/_complete
@@ -39,6 +39,7 @@ fi
 
 # For arguments and command names we use the `_normal' function.
 
+ret=1
 if [[ "$compstate[context]" = command ]]; then
   curcontext="$oldcontext"
   _normal -s && ret=0
diff --git a/Completion/Core/_normal b/Completion/Core/_normal
index e0375e077..54767f2f6 100644
--- a/Completion/Core/_normal
+++ b/Completion/Core/_normal
@@ -68,6 +68,7 @@ fi
 
 # Now look up the two names in the normal completion array.
 
+ret=1
 name="$cmd1"
 comp="$_comps[$cmd1]"