diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ext/save-history.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 7acaebe36a..ad954c3558 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -107,9 +107,9 @@ module IRB raise end - if File.exist?(history_file) && @loaded_history_mtime && + if File.exist?(history_file) && File.mtime(history_file) != @loaded_history_mtime - history = history[@loaded_history_lines..-1] + history = history[@loaded_history_lines..-1] if @loaded_history_lines append_history = true end |