From 5375b71009cd1a484bd4e3ae1cdebdb04bd879bb Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 25 Feb 2009 20:51:12 +0000 Subject: 26606: fix doubled -s in path completion in some cases --- Completion/Unix/Type/_path_files | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 71969d37b..2ce2c0cb2 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -666,14 +666,13 @@ for prepath in "$prepaths[@]"; do # We are inserting the match into the command line. if [[ "$tmp3" = */* ]]; then tmp4=( $Uopt -Qf "$mopts[@]" -p "${Uopt:+$IPREFIX}$linepath$tmp2" - -s "${Uopt:+$ISUFFIX}" -W "$prepath$realpath$testpath" "$pfxsfx[@]" $Mopts ) if [[ -z "$listsfx" ]]; then for i in "$tmp1[@]"; do tmpdisp=("${i%%/*}") _list_files tmpdisp "$prepath$realpath$testpath" - compadd "$tmp4[@]" -s "/${i#*/}" $listopts - "$tmpdisp" + compadd "$tmp4[@]" -s "/${i#*/}${Uopt:+$ISUFFIX}" $listopts - "$tmpdisp" done else [[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:s./.*/}*" -- cgit 1.4.1