aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/ext/history.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/ext/history.rb')
-rw-r--r--lib/irb/ext/history.rb3
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