about summary refs log tree commit diff
path: root/Completion/Unix/Type/_path_files
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-02-25 20:51:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-02-25 20:51:12 +0000
commit5375b71009cd1a484bd4e3ae1cdebdb04bd879bb (patch)
tree8c9063c9eef2bfe74c43c2e9bfd2211af8aa9c8c /Completion/Unix/Type/_path_files
parent3b88638729137b72e3541a07feabe26d5d49ad1c (diff)
downloadzsh-5375b71009cd1a484bd4e3ae1cdebdb04bd879bb.tar.gz
zsh-5375b71009cd1a484bd4e3ae1cdebdb04bd879bb.tar.xz
zsh-5375b71009cd1a484bd4e3ae1cdebdb04bd879bb.zip
26606: fix doubled -s in path completion in some cases
Diffstat (limited to 'Completion/Unix/Type/_path_files')
-rw-r--r--Completion/Unix/Type/_path_files3
1 files changed, 1 insertions, 2 deletions
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./.*/}*"