about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_list_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_list_files b/Completion/Unix/Type/_list_files
index 2166ac6cc..bd5c1fa62 100644
--- a/Completion/Unix/Type/_list_files
+++ b/Completion/Unix/Type/_list_files
@@ -15,8 +15,6 @@ integer ok
 listfiles=()
 listopts=()
 
-zmodload -i zsh/stat 2>/dev/null || return 1
-
 zstyle -a ":completion:${curcontext}:" file-list stylevals || return 1
 
 # TODO: more flexible way of handling the following?  e.g. use $compstate?
@@ -48,6 +46,8 @@ done
 
 (( ok )) || return 1
 
+zmodload -i zsh/stat 2>/dev/null || return 1
+
 for f in ${(P)1}; do
   if [[ ! -e "${2:+$2/}$f" ]]; then
     listfiles+=("${2:+$2/}$f")