summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-07-03 14:48:19 +0100
committergit <svn-admin@ruby-lang.org>2023-07-03 13:48:23 +0000
commitaf9eeb19d8b73a951776ea91901618d6e038d030 (patch)
tree6636051b3dcff3c71a8ee84dd5df2ce2a6805b48 /lib/irb/extend-command.rb
parent4430b73cee4aaa4f203e14368d93b3297505c63e (diff)
[ruby/irb] Stop treating history-saving logic as extension
(https://github.com/ruby/irb/pull/613) Since `IRB.conf[:SAVE_HISTORY]` is assigned with 1000 by default, history-saving is a feature enabled by default. So it should not be treated as an extension, which adds unnecessary complexity to the code.
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index 8b074262ee..7238f1fd1c 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -319,7 +319,6 @@ module IRB # :nodoc:
[:eval_history=, "ext/history.rb"],
[:use_tracer=, "ext/tracer.rb"],
[:use_loader=, "ext/use-loader.rb"],
- [:save_history=, "ext/save-history.rb"],
]
# Installs the default context extensions as irb commands:
@@ -327,7 +326,6 @@ module IRB # :nodoc:
# Context#eval_history=:: +irb/ext/history.rb+
# Context#use_tracer=:: +irb/ext/tracer.rb+
# Context#use_loader=:: +irb/ext/use-loader.rb+
- # Context#save_history=:: +irb/ext/save-history.rb+
def self.install_extend_commands
for args in @EXTEND_COMMANDS
def_extend_command(*args)