about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2015-05-25 16:52:02 +0200
committerDaniel Hahler <git@thequod.de>2015-05-27 19:35:59 +0200
commitf08042943917b9381e56f387fe0a20f1933a4024 (patch)
tree5806001cb1d78f7d4bf79a5be2fcb3c61e8d7d35
parent2d86de91c1bb215a12751525c0f02a04c05385ea (diff)
downloadzsh-f08042943917b9381e56f387fe0a20f1933a4024.tar.gz
zsh-f08042943917b9381e56f387fe0a20f1933a4024.tar.xz
zsh-f08042943917b9381e56f387fe0a20f1933a4024.zip
35285: _cdr: fix zstyle lookup for recent-dirs-insert
The string was quoted incorrectly and missed the final ":".
-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