diff options
Diffstat (limited to 'Functions/Chpwd')
-rw-r--r-- | Functions/Chpwd/zsh_directory_name_cdr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Functions/Chpwd/zsh_directory_name_cdr b/Functions/Chpwd/zsh_directory_name_cdr index c9be7db0c..cb72e4600 100644 --- a/Functions/Chpwd/zsh_directory_name_cdr +++ b/Functions/Chpwd/zsh_directory_name_cdr @@ -1,14 +1,13 @@ if [[ $1 = n ]]; then if [[ $2 = <-> ]]; then # Recent directory - typeset -ga reply autoload -Uz cdr cdr -r if [[ -n ${reply[$2]} ]]; then - reply=(${reply[$2]}) + typeset -ga reply=(${reply[$2]}) return 0 else - reply=() + typeset -ga reply=() return 1 fi fi |