1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Stop using bang version for #inspect of result

https://github.com/ruby/irb/commit/fc1426d34e
This commit is contained in:
aycabta 2020-11-11 00:05:33 +09:00
parent afb8aba4af
commit 2d112c346a

View file

@ -761,7 +761,7 @@ module IRB
str = "%s...\e[0m" % lines.first
multiline_p = false
else
str.gsub!(/(\A.*?\n).*/m, "\\1...")
str = str.gsub(/(\A.*?\n).*/m, "\\1...")
end
else
output_width = Reline::Unicode.calculate_width(@context.return_format % str, true)