mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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…
Add table
Add a link
Reference in a new issue