Skip to content

Commit

Permalink
Stop using chomp option of lines method
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 9, 2020
1 parent caf3e35 commit 3e2f55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/line_editor.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3e2f55c

Please sign in to comment.