summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-09-09 17:44:44 +0900
committeraycabta <aycabta@gmail.com>2020-09-12 08:35:52 +0900
commit9baf1bd0a444d052aff8963630d11176e34271ef (patch)
treefb296cf65eecd84a62002743ad0e016dabc08b5d
parent0ec19cc8435fb3f04c503af374942a2ea74b0e46 (diff)
[ruby/reline] Stop using chomp option of lines method
https://github.com/ruby/reline/commit/3e2f55c3e0
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index fe088a4721..ede913292f 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -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