mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-09 00:11:25 +02:00
29278: Completion/Unix/Type/_path_files: fix use of the $skips
This commit is contained in:
parent
7aefbdb937
commit
cfebfe68b5
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2011-05-14 Mikael Magnusson <mikachu@gmail.com>
|
||||||
|
|
||||||
* 29271: Doc/Zsh/compwid.yo: document _alternative -O name.
|
* 29271: Doc/Zsh/compwid.yo: document _alternative -O name.
|
||||||
|
@ -14712,5 +14717,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5304 $
|
* $Revision: 1.5305 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -574,7 +574,7 @@ for prepath in "$prepaths[@]"; do
|
||||||
# slash be added.
|
# slash be added.
|
||||||
|
|
||||||
tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )
|
tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )
|
||||||
tmp2="${(M)tpre##((.|..|)/)##}"
|
tmp2="${(M)tpre##${~skips}}"
|
||||||
if [[ -n "$tmp2" ]]; then
|
if [[ -n "$tmp2" ]]; then
|
||||||
skipped="/$tmp2"
|
skipped="/$tmp2"
|
||||||
tpre="${tpre#$tmp2}"
|
tpre="${tpre#$tmp2}"
|
||||||
|
|
Loading…
Reference in a new issue