1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

IRB's multiline history is enable only when Reidline mode

This commit is contained in:
aycabta 2019-08-22 05:07:59 +09:00
parent 6bdb65c0e6
commit 48fdc37ad5

View file

@ -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