about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2009-02-28 07:11:31 +0000
committerBart Schaefer <barts@users.sourceforge.net>2009-02-28 07:11:31 +0000
commit027ce9a00134c1f9c272739042e7133ad792dec7 (patch)
tree1e5ccee8165faaaeab793b4dca9d0d844755d5ff /Completion/Unix
parenta85db682710c7435e1093844491b4caa35aee90e (diff)
downloadzsh-027ce9a00134c1f9c272739042e7133ad792dec7.tar.gz
zsh-027ce9a00134c1f9c272739042e7133ad792dec7.tar.xz
zsh-027ce9a00134c1f9c272739042e7133ad792dec7.zip
26609: _path_files: better (?) fix for globcomplete.
unposted: _pick_variant: explicit rather than implicit success return.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_path_files4
1 files changed, 2 insertions, 2 deletions
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./.*/}*"