From dcc6d87c9fd16fa868fe2dffffbf724b7ae71511 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 13 Dec 1999 14:06:30 +0000 Subject: zsh-workers/9020 --- Completion/Core/_path_files | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Completion/Core/_path_files') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 993d0e89a..cafec3c09 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -224,12 +224,19 @@ for prepath in "$prepaths[@]"; do if [[ "$tpre$tsuf" = */* ]]; then tmp2=( ${^tmp1}*(-/) ) - [[ ! -o globdots && "$PREFIX" = .* ]] && - tmp2=( "$tmp2[@]" ${^tmp1}.*(-/) . .. ) + if [[ ! -o globdots && "$PREFIX" = .* ]]; then + tmp2=( "$tmp2[@]" ${^tmp1}.*(-/) ) + zstyle -t ":completion${curcontext}:paths" special-dirs && + tmp2=( "$tmp2[@]" . .. ) + fi else tmp2=( ${^tmp1}${^~pats} ) - [[ ! -o globdots && "$PREFIX" = .* ]] && - tmp2=( "$tmp2[@]" ${^tmp1}.${^~pats} . .. ) + if [[ ! -o globdots && "$PREFIX" = .* ]]; then + tmp2=( "$tmp2[@]" ${^tmp1}.${^~pats} ) + [[ "$sopt" = */* ]] && + zstyle -t ":completion${curcontext}:paths" special-dirs && + tmp2=( "$tmp2[@]" . .. ) + fi fi tmp1=( "$tmp2[@]" ) -- cgit 1.4.1