about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Chpwd/_cdr2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45f398448..dd8a2453a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-27  Daniel Hahler  <zsh@thequod.de>
+
+	* 35285: Functions/Chpwd/_cdr: fix zstyle lookup for
+	recent-dirs-insert.
+
 2015-05-27  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Han Pingtian: 35299: Functions/Zftp/zfdir: improve effect of
diff --git a/Functions/Chpwd/_cdr b/Functions/Chpwd/_cdr
index 2f52ff54b..3a1e9bde8 100644
--- a/Functions/Chpwd/_cdr
+++ b/Functions/Chpwd/_cdr
@@ -5,7 +5,7 @@ integer default insert
 
 zstyle -t ':chpwd:' recent-dirs-default && default=1
 if (( default )); then
-  zstyle -s ':completion:${curcontext}' recent-dirs-insert insert_string
+  zstyle -s ":completion:${curcontext}:" recent-dirs-insert insert_string
   case $insert_string in
     (both)
     insert=4