diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_path_files | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index df820c643..b41f8afa9 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -23,9 +23,9 @@ sopt="-${(@j::M)${(@)tmp1#-}#?}" (( $tmp1[(I)-[/g]*] )) && haspats=yes (( $tmp1[(I)-g*] )) && gopt=yes if (( $tmp1[(I)-/] )); then - pats=( '*(-/)' ${=${(M)tmp1:#-g*}#-g} ) + pats=( '*(-/)' ${(z)${(M)tmp1:#-g*}#-g} ) else - pats=( "${(@)=${(@M)tmp1:#-g*}#-g}" ) + pats=( "${(@z)${(@M)tmp1:#-g*}#-g}" ) fi pats=( "${(@)pats:# #}" ) |