summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-02-23 12:35:24 +0900
committeraycabta <aycabta@gmail.com>2020-03-26 17:41:21 +0900
commitf245fb1ab8d893a89c8749a703efea0b16353028 (patch)
treebcdb35d97c228f6616a290284b7e492e4f8d4b2e /lib/reline
parent22477128cd77e0d0dce7e78bc12f9cc8cccc1cb4 (diff)
[ruby/reline] Work with wrong $/ value correctly
https://github.com/ruby/reline/commit/962ebf5a1b
Diffstat (limited to 'lib/reline')
-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 478d1d73f3..095a7b5a09 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -543,7 +543,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(chomp: true)
+ after.lines("\n", chomp: true)
else
before
end