summaryrefslogtreecommitdiff
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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb
index 1e978181ae..40f8692e8b 100644
--- a/lib/irb/ext/history.rb
+++ b/lib/irb/ext/history.rb
@@ -33,7 +33,7 @@ module IRB
attr_reader :eval_history
def eval_history=(no)
if no
- if @eval_history
+ if defined?(@eval_history) && @eval_history
@eval_history_values.size(no)
else
@eval_history_values = History.new(no)