diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_path_files | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 892450f53..60a266482 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -36,7 +36,7 @@ if (( $#prepaths )); then if [[ "$tmp1[1]" = '(' ]]; then prepaths=( ${^=tmp1[2,-2]%/}/ ) elif [[ "$tmp1[1]" = '/' ]]; then - prepaths=( "$tmp1/" ) + prepaths=( "${tmp1%/}/" ) else prepaths=( ${(P)^tmp1%/}/ ) (( ! $#prepaths )) && prepaths=( ${tmp1%/}/ ) |