Hacky fix for bug where command_state isn't initialized before cding

This commit is contained in:
Ryan Fitzgerald 2012-12-23 00:12:07 -08:00
parent 3c6ffaf69c
commit f82cd1535e
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class Pry
else
# Otherwise, saves current binding stack as old stack and pops last
# binding out of binding stack (the old stack still has that binding).
_pry_.command_state["cd"] ||= OpenStruct.new # FIXME
_pry_.command_state["cd"].old_stack = _pry_.binding_stack.dup
_pry_.binding_stack.pop
end