Skip to content

Commit 3e2f55c

Browse files
committed
Stop using chomp option of lines method
1 parent caf3e35 commit 3e2f55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def rerender
538538
return before if before.nil? || before.empty?
539539

540540
if after = @output_modifier_proc&.call("#{before.join("\n")}\n", complete: finished?)
541-
after.lines("\n", chomp: true)
541+
after.lines("\n").map { |l| l.chomp('') }
542542
else
543543
before
544544
end

0 commit comments

Comments
 (0)