diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 14a58fc870..a77b0e5486 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -538,7 +538,7 @@ def rerender 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