about summary refs log tree commit diff
path: root/Functions/Chpwd
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-07-20 21:46:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-07-20 21:46:42 +0000
commitbdfc1edc899036d0538dd360963cabce0d5e1838 (patch)
tree7c0fdc24d004f46c4f8b552df7a573344834f418 /Functions/Chpwd
parentc42ae31a190834df88af3339465e4ee2429b7592 (diff)
downloadzsh-bdfc1edc899036d0538dd360963cabce0d5e1838.tar.gz
zsh-bdfc1edc899036d0538dd360963cabce0d5e1838.tar.xz
zsh-bdfc1edc899036d0538dd360963cabce0d5e1838.zip
28096: don't add $OLDPWD to recent dirs as we weren't there
Diffstat (limited to 'Functions/Chpwd')
-rw-r--r--Functions/Chpwd/chpwd_recent_dirs5
1 files changed, 0 insertions, 5 deletions
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