зеркало из https://github.com/github/ruby.git
[ruby/reline] Stop using chomp option of lines method
https://github.com/ruby/reline/commit/3e2f55c3e0
This commit is contained in:
Родитель
0ec19cc843
Коммит
9baf1bd0a4
|
@ -538,7 +538,7 @@ class Reline::LineEditor
|
||||||
return before if before.nil? || before.empty?
|
return before if before.nil? || before.empty?
|
||||||
|
|
||||||
if after = @output_modifier_proc&.call("#{before.join("\n")}\n", complete: finished?)
|
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
|
else
|
||||||
before
|
before
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче