1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

39154: _files: -/ with list-dirs-first resulted in a bad pattern, thus aborting completion partway.

This commit is contained in:
Daniel Shahaf 2016-09-02 04:32:31 +00:00
parent 4547897976
commit 8bb531990e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-09-02 Daniel Shahaf <d.s@daniel.shahaf.name>
* 39154: Completion/Unix/Type/_files: -/ with list-dirs-first
resulted in a bad pattern, thus aborting completion partway.
2016-08-31 Oliver Kiddle <opk@zsh.org>
* Marko Myllynen: 39118: Completion/Unix/Command/_libvirt:

View file

@ -35,7 +35,7 @@ if (( $tmp[(I)-g*] )); then
[[ "$glob" = (#b)(*\()([^\|\~]##\)) && $match[2] != \#q* ]] &&
glob="${match[1]}#q${match[2]}"
elif [[ $type = */* ]]; then
glob="*(-/)"
glob="*(#q-/)"
fi
tmp=$opts[(I)-F]
if (( tmp )); then