[前][次][番号順一覧][スレッド一覧]

ruby-changes:62902

From: aycabta <ko1@a...>
Date: Sat, 12 Sep 2020 08:38:53 +0900 (JST)
Subject: [ruby-changes:62902] 9baf1bd0a4 (master): [ruby/reline] Stop using chomp option of lines method

https://git.ruby-lang.org/ruby.git/commit/?id=9baf1bd0a4

From 9baf1bd0a444d052aff8963630d11176e34271ef Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 9 Sep 2020 17:44:44 +0900
Subject: [ruby/reline] Stop using chomp option of lines method

https://github.com/ruby/reline/commit/3e2f55c3e0

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index fe088a4..ede9132 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -538,7 +538,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L538
     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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]