diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-19 19:24:59 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-19 19:24:59 +0000 |
commit | f9fb21448bc4c9b1d7e9fb135dc37593974a3498 (patch) | |
tree | 67e5782ca3ba385be9ecfe5ca6370c012fb36df6 /lib/irb/ext/history.rb | |
parent | 40906c5d5d09837d005a7503fcf8c3f96cee111d (diff) |
* lib/irb.rb lib/irb/* doc/irb: IRB 0.9.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ext/history.rb')
-rw-r--r-- | lib/irb/ext/history.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb index 55cd56de2f..40f8692e8b 100644 --- a/lib/irb/ext/history.rb +++ b/lib/irb/ext/history.rb @@ -1,9 +1,9 @@ # # history.rb - -# $Release Version: 0.9$ +# $Release Version: 0.9.5$ # $Revision$ # $Date$ -# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd) +# by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # @@ -21,8 +21,8 @@ module IRB def set_last_value(value) _set_last_value(value) - @workspace.evaluate self, "_ = IRB.CurrentContext.last_value" - if (@eval_history ||= nil) #and !@eval_history_values.equal?(llv) +# @workspace.evaluate self, "_ = IRB.CurrentContext.last_value" + if @eval_history #and !@eval_history_values.equal?(llv) @eval_history_values.push @line_no, @last_value @workspace.evaluate self, "__ = IRB.CurrentContext.instance_eval{@eval_history_values}" end @@ -33,7 +33,7 @@ module IRB attr_reader :eval_history def eval_history=(no) if no - if (@eval_history ||= nil) + if defined?(@eval_history) && @eval_history @eval_history_values.size(no) else @eval_history_values = History.new(no) |