1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-13 11:21:13 +02:00

use special-dirs with _path_files -g (3019)

This commit is contained in:
Sven Wischnowsky 2000-04-10 08:50:53 +00:00
parent 724b065397
commit 36b410a6f9
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2000-04-10 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 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

View file

@ -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[@]" . .. )