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:
parent
6bdb65c0e6
commit
48fdc37ad5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue