about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index b43449541..600a82189 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -326,6 +326,8 @@ for prepath in "$prepaths[@]"; do
 	    [[ "$i" -ef "$PWD" ]] && _comp_ignore=( "$_comp_ignore[@]" "${(q)i}" )
 	  done
         fi
+       (( $#_comp_ignore )) && (( $expl[(I)-F] )) ||
+           expl=( "$expl[@]" -F _comp_ignore )
       fi
       if [[ "$sopt" = *[/f]* && ( -o globdots || "$PREFIX" = .* ) ]] &&
 	  zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then