about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-07-02 07:17:00 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-07-02 07:17:00 +0000
commit05fdd6fed2c736d28c63b595db5c2be4fabfd7a0 (patch)
tree12eae7c2fa153497d77b8f139101f49ea7d3c0ae
parent70c4e162c622f1ab6beba4c38652e1fd3d51c398 (diff)
downloadzsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.tar.gz
zsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.tar.xz
zsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.zip
Return nonzero from _tilde on no matches.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Context/_tilde4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b9a5c1398..d242eb30d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-02  Bart Schaefer  <schaefer@zsh.org>
+
+	* 15198: Completion/Zsh/Context/_tilde: Return nonzero if no
+	matches are found.
+
 2001-06-30  Bart Schaefer  <schaefer@zsh.org>
 
 	* 15191: Src/init.c: Don't infinite loop if there's an error in
diff --git a/Completion/Zsh/Context/_tilde b/Completion/Zsh/Context/_tilde
index 7f1b6b36a..b27bb0720 100644
--- a/Completion/Zsh/Context/_tilde
+++ b/Completion/Zsh/Context/_tilde
@@ -6,7 +6,7 @@
 
 [[ -n "$compstate[quote]" ]] && return 1
 
-local expl suf ret
+local expl suf ret=1
 
 if [[ "$SUFFIX" = */* ]]; then
   ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
@@ -28,3 +28,5 @@ while _tags; do
 
   (( ret )) || return 0
 done
+
+return ret