From 5f61b262a515286c7789cd26abf4d9140fb2d06d Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 6 Dec 1999 09:29:28 +0000 Subject: zsh-workers/8906 --- Completion/Core/_path_files | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 2367def63..79b1473c4 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -39,10 +39,10 @@ while getopts "P:S:qr:R:W:F:J:V:X:f/g:M:" opt; do ;; W) tmp1="$OPTARG" if [[ "$tmp1[1]" = '(' ]]; then - prepaths=( ${^=tmp1[2,-2]}/ ) + prepaths=( ${^=tmp1[2,-2]%/}/ ) else - prepaths=( ${(P)=${tmp1}} ) - (( ! $#prepaths )) && prepaths=( ${tmp1}/ ) + prepaths=( ${(P)^=tmp1%/}/ ) + (( ! $#prepaths )) && prepaths=( ${tmp1%/}/ ) fi (( ! $#prepaths )) && prepaths=( '' ) ;; -- cgit 1.4.1