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

[ruby/reline] Stop using chomp option of lines method

3e2f55c3e0
This commit is contained in:
aycabta 2020-09-09 17:44:44 +09:00
parent 0ec19cc843
commit 9baf1bd0a4

View file

@ -538,7 +538,7 @@ class Reline::LineEditor
return before if before.nil? || before.empty?
if after = @output_modifier_proc&.call("#{before.join("\n")}\n", complete: finished?)
after.lines("\n", chomp: true)
after.lines("\n").map { |l| l.chomp('') }
else
before
end