diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ext/save-history.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |