diff --git a/lib/iruby/backend.rb b/lib/iruby/backend.rb index 523f5e4..e0bc820 100644 --- a/lib/iruby/backend.rb +++ b/lib/iruby/backend.rb @@ -18,7 +18,7 @@ def eval(code, store_history) # TODO Add IRuby.cache_size which controls the size of the Out array # and sets the oldest entries and _ variables to nil. if store_history - b.local_variable_set("_#{Out.size}", out) + b.local_variable_set("_o#{Out.size}", out) b.local_variable_set("_i#{In.size}", code) Out << out