diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_path_files | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index dd9934506..39e02fb58 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -44,7 +44,9 @@ while getopts "P:S:qr:R:W:F:J:V:X:f/g:M:12n" opt; do if [[ "$tmp1[1]" = '(' ]]; then prepaths=( ${^=tmp1[2,-2]%/}/ ) else - prepaths=( ${(P)^=tmp1%/}/ ) + # In this case the variable should be an array, so + # don't use an extra ${=...}. + prepaths=( ${(P)^tmp1%/}/ ) (( ! $#prepaths )) && prepaths=( ${tmp1%/}/ ) fi (( ! $#prepaths )) && prepaths=( '' ) |