ruby-changes:64243
From: Robert <ko1@a...>
Date: Thu, 17 Dec 2020 20:24:50 +0900 (JST)
Subject: [ruby-changes:64243] 422e2c7274 (master): [ruby/reline] Use plus operator to create unfrozen string
https://git.ruby-lang.org/ruby.git/commit/?id=422e2c7274 From 422e2c7274d9dbf1ff93dccc0c3c388f4775e636 Mon Sep 17 00:00:00 2001 From: Robert Schulze <robert@d...> Date: Tue, 5 May 2020 09:24:52 +0200 Subject: [ruby/reline] Use plus operator to create unfrozen string https://github.com/ruby/reline/commit/ca274b0d37 diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 0fddbcc..b2d7e7d 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -172,7 +172,7 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L172 def self.cursor_pos begin - res = String.new + res = +'' m = nil @@input.raw do |stdin| @@output << "\e[6n" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/