1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

29278: Completion/Unix/Type/_path_files: fix use of the $skips

This commit is contained in:
Bart Schaefer 2011-05-15 00:06:31 +00:00
parent 7aefbdb937
commit cfebfe68b5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-05-14 Barton E. Schaefer <schaefer@zsh.org>
* 29278: Completion/Unix/Type/_path_files: fix use of the $skips
pattern from the squeeze-slashes style.
2011-05-14 Mikael Magnusson <mikachu@gmail.com>
* 29271: Doc/Zsh/compwid.yo: document _alternative -O name.
@ -14712,5 +14717,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5304 $
* $Revision: 1.5305 $
*****************************************************

View file

@ -574,7 +574,7 @@ for prepath in "$prepaths[@]"; do
# slash be added.
tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )
tmp2="${(M)tpre##((.|..|)/)##}"
tmp2="${(M)tpre##${~skips}}"
if [[ -n "$tmp2" ]]; then
skipped="/$tmp2"
tpre="${tpre#$tmp2}"