diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_list_files | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_list_files b/Completion/Unix/Type/_list_files index 3d5281669..8475d2056 100644 --- a/Completion/Unix/Type/_list_files +++ b/Completion/Unix/Type/_list_files @@ -48,6 +48,7 @@ done zmodload -i zsh/stat 2>/dev/null || return 1 +{ # Enable stat temporarily if disabled to avoid clashes. integer disable_stat if [[ ${builtins[stat]} != defined ]]; then @@ -73,5 +74,7 @@ done (( ${#listfiles} )) && listopts=(-d listfiles -l -o) -(( disable_stat )) && disable stat +} always { + (( disable_stat )) && disable stat +} return 0 |