1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

27208: try to do the right thing when applying file-sort to extant glob qualifiers.

This commit is contained in:
Clint Adams 2009-08-05 00:28:34 +00:00
parent ab4cfaedda
commit 805a11bddf
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-08-05 Clint Adams <clint@zsh.org>
* 27208: Completion/Unix/Type_path_files: try to do the
right thing when applying file-sort to extant glob qualifiers.
2009-08-01 Clint Adams <clint@zsh.org>
* 27203: Completion/Debian/Command/_aptitude: treat
@ -12048,5 +12053,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4753 $
* $Revision: 1.4754 $
*****************************************************

View file

@ -160,7 +160,7 @@ if zstyle -s ":completion:${curcontext}:" file-sort tmp1; then
if _have_glob_qual "$tmp1" complete; then
# unbalanced parenthesis is correct: match[1] contains the start,
# match[5] doesn't contain the end.
tmp2+=( "${match[1]}${sort}${match[5]})" )
tmp2+=( "${match[1]}${match[5]})(${sort})" )
else
tmp2+=( "${tmp1}(${sort})" )
fi