From 48fdc37ad52d9a59763da4c1c22683713b7ddea8 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 22 Aug 2019 05:07:59 +0900 Subject: IRB's multiline history is enable only when Reidline mode --- lib/irb/ext/save-history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb/ext/save-history.rb') diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 37393dfb36..c0d4d372b7 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -75,7 +75,7 @@ module IRB open(history_file) do |f| f.each { |l| l = l.chomp - if history.last&.end_with?("\\") + if self.class == ReidlineInputMethod and history.last&.end_with?("\\") history.last.delete_suffix!("\\") history.last << "\n" << l else -- cgit v1.2.3