From 7b82c59185fd8ca64394cc74fc7dbb3e82fde84f Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 18 Apr 2003 17:18:37 +0000 Subject: fix buy where 0 was not returned when adding a named directory as a match --- ChangeLog | 3 +++ Completion/Zsh/Context/_tilde | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b929912ea..adce11f35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-04-18 Oliver Kiddle + * unposted: Completion/Zsh/Context/_tilde: fix bug where 0 was + not returned when adding a named directory as a match + * users/6013: GoTaR : Completion/Unix/Type/_ps, Completion/Unix/Type/_pdf, Completion/X/Command/_gqview: new gqview completion and complete .ps/.pdf files for more commands diff --git a/Completion/Zsh/Context/_tilde b/Completion/Zsh/Context/_tilde index 5fad92da3..4b5cfaa09 100644 --- a/Completion/Zsh/Context/_tilde +++ b/Completion/Zsh/Context/_tilde @@ -6,7 +6,7 @@ [[ -n "$compstate[quote]" ]] && return 1 -local expl suf dirs list lines revlines i ret=1 disp nm="$compstate[nmatches]" +local expl suf ret=1 if [[ "$SUFFIX" = */* ]]; then ISUFFIX="/${SUFFIX#*/}$ISUFFIX" @@ -22,7 +22,7 @@ while _tags; do _requested users && _users "$suf[@]" "$@" && ret=0 _requested named-directories expl 'named directory' \ - compadd "$suf[@]" "$@" -k nameddirs + compadd "$suf[@]" "$@" -k nameddirs && ret=0 _requested directory-stack && _directory_stack "$suf[@]" && ret=0 -- cgit 1.4.1