summary refs log tree commit diff
diff options
context:
space:
mode:
-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