diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-07-02 07:17:00 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-07-02 07:17:00 +0000 |
commit | 05fdd6fed2c736d28c63b595db5c2be4fabfd7a0 (patch) | |
tree | 12eae7c2fa153497d77b8f139101f49ea7d3c0ae | |
parent | 70c4e162c622f1ab6beba4c38652e1fd3d51c398 (diff) | |
download | zsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.tar.gz zsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.tar.xz zsh-05fdd6fed2c736d28c63b595db5c2be4fabfd7a0.zip |
Return nonzero from _tilde on no matches.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Zsh/Context/_tilde | 4 |
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 |