diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-02 04:32:31 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-02 18:23:55 +0000 |
commit | 8bb531990e99b6f71f33007deae41ada6d6ddaf0 (patch) | |
tree | b4dd16bc18fbbdb63676c7ebabb2703d40abaacf | |
parent | 4547897976f0f3cfe7180d85c92406d43e0b3763 (diff) | |
download | zsh-8bb531990e99b6f71f33007deae41ada6d6ddaf0.tar.gz zsh-8bb531990e99b6f71f33007deae41ada6d6ddaf0.tar.xz zsh-8bb531990e99b6f71f33007deae41ada6d6ddaf0.zip |
39154: _files: -/ with list-dirs-first resulted in a bad pattern, thus aborting completion partway.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_files | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 5480a57e6..989d16e84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index 69878242f..2b0c5580a 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -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 |