ruby-changes:56184
From: git <ko1@a...>
Date: Fri, 21 Jun 2019 22:49:03 +0900 (JST)
Subject: [ruby-changes:56184] git: 551ef27490 (trunk): * expand tabs.
https://git.ruby-lang.org/ruby.git/commit/?id=551ef27490 From 551ef27490bf380e46453846c040b48596f34a6a Mon Sep 17 00:00:00 2001 From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Fri, 21 Jun 2019 22:48:50 +0900 Subject: * expand tabs. diff --git a/string.c b/string.c index 5a91f6b..0304652 100644 --- a/string.c +++ b/string.c @@ -5087,7 +5087,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5087 if (rlen != plen) { memmove(p + beg0 + rlen, p + beg0 + plen, len - beg0 - plen); } - memmove(p + beg0, rp, rlen); + memmove(p + beg0, rp, rlen); len += rlen - plen; STR_SET_LEN(str, len); TERM_FILL(&RSTRING_PTR(str)[len], TERM_LEN(str)); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/