From 36b410a6f94372ad600b40f9eb23b397a208081e Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 10 Apr 2000 08:50:53 +0000 Subject: use special-dirs with _path_files -g (3019) --- ChangeLog | 3 +++ Completion/Core/_path_files | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9a4a845e7..5692bb58d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-04-10 Sven Wischnowsky + * users/3019: Completion/Core/_path_files: use special-dirs with + _path_files -g + * 10614: Src/Modules/parameter.c: more careful with checking index of $history diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 3ddc62f94..377b9b7d0 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -293,7 +293,8 @@ for prepath in "$prepaths[@]"; do else tmp1=( ${^tmp1}${skipped}${^~pats} ) fi - if [[ "$sopt" = *[/f]* && ( -o globdots || "$PREFIX" = .* ) ]] && + if [[ ( "$sopt" = *[/f]* || "$pats" = *\([^[:blank:]]#/[^[:blank:]]#\)* ) && + ( -o globdots || "$PREFIX" = .* ) ]] && zstyle -s ":completion:${curcontext}:paths" special-dirs atmp; then if [[ "$atmp" = (yes|true|1|on) ]]; then tmp1=( "$tmp1[@]" . .. ) -- cgit 1.4.1