about summary refs log tree commit diff
path: root/Completion/Core/_path_files
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r--Completion/Core/_path_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index d8c7b9812..96d7ce6d0 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -255,7 +255,7 @@ for prepath in "$prepaths[@]"; do
 
     if [[ "$tpre$tsuf" = */* ]]; then
       if [[ ! -o globdots && "$PREFIX" = .* ]]; then
-        tmp1=( ${^tmp1}${skipped}*(-/) ${^tmp1}${slash}.*(-/) )
+        tmp1=( ${^tmp1}${skipped}*(-/) ${^tmp1}${skipped}.*(-/) )
       else
         tmp1=( ${^tmp1}${skipped}*(-/) )
       fi
@@ -269,7 +269,7 @@ for prepath in "$prepaths[@]"; do
       fi
     else
       if [[ ! -o globdots && "$PREFIX" = .* ]]; then
-        tmp1=( ${^tmp1}${skipped}${^~pats} ${^tmp1}${slash}.${^~pats} )
+        tmp1=( ${^tmp1}${skipped}${^~pats} ${^tmp1}${skipped}.${^~pats} )
       else
         tmp1=( ${^tmp1}${skipped}${^~pats} )
       fi