1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

28096: don't add $OLDPWD to recent dirs as we weren't there

This commit is contained in:
Peter Stephenson 2010-07-20 21:46:42 +00:00
parent c42ae31a19
commit bdfc1edc89
2 changed files with 4 additions and 6 deletions

View file

@ -1,5 +1,8 @@
2010-07-20 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 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 $
*****************************************************

View file

@ -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