summaryrefslogtreecommitdiff
path: root/lib/irb/history.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/history.rb')
-rw-r--r--lib/irb/history.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/history.rb b/lib/irb/history.rb
index 50fe1ce229..90aa9f0bcf 100644
--- a/lib/irb/history.rb
+++ b/lib/irb/history.rb
@@ -5,7 +5,7 @@ module IRB
end
def reset_history_counter
- @loaded_history_lines = self.class::HISTORY.size if defined? @loaded_history_lines
+ @loaded_history_lines = self.class::HISTORY.size
end
def load_history