about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 51222bd9c..12d497a97 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -160,7 +160,7 @@ eorig="$orig"
 
 # If given no `-F' option, we want to use the `ignored-suffixes'-style.
 
-if (( ! $#ignore )); then
+if [[ $#ignore -eq 0 && -z $gopt ]]; then
   if zstyle -a ":completion${curcontext}:files" ignored-suffixes ignore; then
     ignore=(-F "( $ignore )")
   else