Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix storage of scalar reply vars

  • Loading branch information...
commit ed1027f0597e7867599d2c8ac20ab5fa31b60da0 1 parent 9cf3c28
@rsanders authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 zsh/functions/zmemoize
View
4 zsh/functions/zmemoize
@@ -110,7 +110,7 @@ function _zmemoize_capture {
for varname in ${(ps.:.)memodef[reply_scalars]}; do
[[ -z $varname ]] && continue
- memoavps["reply_scalar_${varname}"]=${(P)varname}
+ memoavps[reply_scalar_${varname}]=${(P)varname}
done
for varname in ${(ps.:.)memodef[reply_arrays]}; do
@@ -206,7 +206,7 @@ function _zmemoize_replay {
ref="${__hashname}[(I)reply_scalar_*]"
for __varname in ${(P)ref}; do
ref="${__hashname}[${__varname}]"
- eval "${__varname#reply_scalar_}=\$${__hashname}[${__varname}]"
+ eval "${__varname#reply_scalar_}=\$$ref"
done
ref="${__hashname}[(I)reply_array_*]"
Please sign in to comment.
Something went wrong with that request. Please try again.