diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
commit | 76515504d552d3677f81539c29ed5f558f0dc4f0 (patch) | |
tree | ef35eaabde005fe0350b8ac955a63a4cebaa1cdc /lib/irb/ext/history.rb | |
parent | 5afa23b4a46b55667d8f1c6e4490dfb315c8616f (diff) | |
download | ruby-76515504d552d3677f81539c29ed5f558f0dc4f0.tar.gz |
* lib/irb.rb: removed commented-out code.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ext/history.rb')
-rw-r--r-- | lib/irb/ext/history.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb index d991f4d33b..0096357c9c 100644 --- a/lib/irb/ext/history.rb +++ b/lib/irb/ext/history.rb @@ -21,8 +21,7 @@ module IRB # :nodoc: def set_last_value(value) _set_last_value(value) - # @workspace.evaluate self, "_ = IRB.CurrentContext.last_value" - if @eval_history #and !@eval_history_values.equal?(llv) + if @eval_history @eval_history_values.push @line_no, @last_value @workspace.evaluate self, "__ = IRB.CurrentContext.instance_eval{@eval_history_values}" end |