about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-02 04:32:31 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-02 18:23:55 +0000
commit8bb531990e99b6f71f33007deae41ada6d6ddaf0 (patch)
treeb4dd16bc18fbbdb63676c7ebabb2703d40abaacf
parent4547897976f0f3cfe7180d85c92406d43e0b3763 (diff)
downloadzsh-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--ChangeLog5
-rw-r--r--Completion/Unix/Type/_files2
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