From 027ce9a00134c1f9c272739042e7133ad792dec7 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 28 Feb 2009 07:11:31 +0000 Subject: 26609: _path_files: better (?) fix for globcomplete. unposted: _pick_variant: explicit rather than implicit success return. --- Completion/Unix/Type/_path_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 2ce2c0cb2..fceebec4c 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -670,9 +670,9 @@ for prepath in "$prepaths[@]"; do "$pfxsfx[@]" $Mopts ) if [[ -z "$listsfx" ]]; then for i in "$tmp1[@]"; do - tmpdisp=("${i%%/*}") + tmpdisp=("$i") _list_files tmpdisp "$prepath$realpath$testpath" - compadd "$tmp4[@]" -s "/${i#*/}${Uopt:+$ISUFFIX}" $listopts - "$tmpdisp" + compadd "$tmp4[@]" -s "${Uopt:+$ISUFFIX}" $listopts - "$tmpdisp" done else [[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:s./.*/}*" -- cgit 1.4.1