diff options
author | Stan Lo <[email protected]> | 2025-01-11 22:03:54 +0800 |
---|---|---|
committer | git <[email protected]> | 2025-01-11 14:03:59 +0000 |
commit | 76b620b341b54eb80028f03cc828333defacc87e (patch) | |
tree | 246068e06193c214f8ef31be2a9afc6eb22cb416 /lib/irb/init.rb | |
parent | 80d28785c4385f5688db90b448c99dc1dc042a6a (diff) |
[ruby/irb] `IRB.conf[:SAVE_HISTORY]` should handle boolean values
(https://github.com/ruby/irb/pull/1062)
Although not documented, `IRB.conf[:SAVE_HISTORY]` used to accept boolean,
which now causes `NoMethodError` when used.
This commit changes the behavior to accept boolean values and
adds tests for the behavior.
https://github.com/ruby/irb/commit/8b1a07b2a8
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index d474bd41d6..b41536e61a 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -93,7 +93,7 @@ module IRB # :nodoc: @CONF[:VERBOSE] = nil @CONF[:EVAL_HISTORY] = nil - @CONF[:SAVE_HISTORY] = 1000 + @CONF[:SAVE_HISTORY] = History::DEFAULT_ENTRY_LIMIT @CONF[:BACK_TRACE_LIMIT] = 16 |