From bdfc1edc899036d0538dd360963cabce0d5e1838 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 20 Jul 2010 21:46:42 +0000 Subject: 28096: don't add $OLDPWD to recent dirs as we weren't there --- ChangeLog | 5 ++++- Functions/Chpwd/chpwd_recent_dirs | 5 ----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d9059d2e..c789f82f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-07-20 Peter Stephenson + * 28096: Functions/Chpwd/chpwd_recent_dirs: don't add + $OLDPWD. + * 28081: Doc/Zsh/contrib.yo, Functions/Chpwd/chpwd_recent_filehandler: document style stuff with cdr, future-proof file reading. @@ -13401,5 +13404,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5031 $ +* $Revision: 1.5032 $ ***************************************************** diff --git a/Functions/Chpwd/chpwd_recent_dirs b/Functions/Chpwd/chpwd_recent_dirs index 10a6b4e34..78608eea2 100644 --- a/Functions/Chpwd/chpwd_recent_dirs +++ b/Functions/Chpwd/chpwd_recent_dirs @@ -38,11 +38,6 @@ fi chpwd_recent_filehandler if [[ $reply[1] != $PWD ]]; then - if [[ -n $OLDPWD && $reply[1] != $OLDPWD ]]; then - # The first time we change directory we probably don't have - # the initial directory. - chpwd_recent_add $OLDPWD && changed=1 - fi chpwd_recent_add $PWD && changed=1 (( changed )) && chpwd_recent_filehandler $reply -- cgit 1.4.1