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:
parent
afb8aba4af
commit
2d112c346a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue