1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

30199: add (-.) to many completion _files globs

This commit is contained in:
Oliver Kiddle 2012-02-10 17:09:05 +00:00
parent 32eb4faf7c
commit c5fce37bce
28 changed files with 82 additions and 63 deletions

View file

@ -157,7 +157,7 @@ case $state in
_tags $tags
while _tags; do
if _requested files expl 'info file'; then
_files "$expl[@]" $infopath -g '*.info' && ret=0
_files "$expl[@]" $infopath -g '*.info(-.)' && ret=0
fi
if _requested items; then
items=(${${(M)${${(f)"$(${info} --output - ${words[1,CURRENT-1]} 2>/dev/null)"}[1,(r)[[:space:]]#--- The Detailed Node Listing ---[[:space:]]#]}:#\* *~\* Menu:*}:/(#b)\*[[:space:]]##([^:]##):(#B)( \(?##\)[^.]#.|(:|))[[:space:]]#(#b)(*)[[:space:]]#/$match[1]${match[2]:+:}$match[2]})