summaryrefslogtreecommitdiffstats
path: root/Completion/Core
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-24 11:56:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-24 11:56:08 +0000
commitbee5edef68f587cff2f25690f92045a2d4a0f70f (patch)
treec7c411dc99355bed03f714ab2008893c7ddbdd25 /Completion/Core
parentzsh-workers/10223 (diff)
downloadzsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar.gz
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar.bz2
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar.lz
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar.xz
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.tar.zst
zsh-bee5edef68f587cff2f25690f92045a2d4a0f70f.zip
zsh-workers/10225
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 21ca05529..9f197f324 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -30,6 +30,7 @@ if (( $tmp1[(I)-/] )); then
else
pats=( "${(@)=${(@M)tmp1:#-g*}#-g}" )
fi
+pats=( "${(@)pats:# #}" )
if (( $#prepaths )); then
tmp1="${prepaths[2]}"
@@ -268,7 +269,7 @@ for prepath in "$prepaths[@]"; do
fi
else
if [[ ! -o globdots && "$PREFIX" = .* ]]; then
- tmp1=( ${^tmp1}${skipped}${^~pats} ${^tmp1}${skipped}.${^~pats} )
+ tmp1=( ${^tmp1}${skipped}${^~pats} ${^tmp1}${skipped}.${^~pats:#.*} )
else
tmp1=( ${^tmp1}${skipped}${^~pats} )
fi