From 7fa86de15b2a8aa85919f4aa76e86acbb9a43564 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 12 Aug 2020 13:15:29 +0900 Subject: [ruby/irb] Workaround a bug of ruby-mode.el https://github.com/ruby/irb/commit/6dfd59400d --- lib/irb/ext/save-history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 7ba12378c7..ac358c8ccb 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -25,7 +25,7 @@ module IRB IRB.conf[:SAVE_HISTORY] end - remove_method :save_history= if method_defined?(:save_history=) + remove_method(:save_history=) if method_defined?(:save_history=) # Sets IRB.conf[:SAVE_HISTORY] to the given +val+ and calls # #init_save_history with this context. # -- cgit v1.2.3