Skip to content

Commit

Permalink
Add resetting char attr that I forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 21, 2021
1 parent c72f473 commit b5f953d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def output_value(omit = false) # :nodoc:
str = "%s...\e[0m" % lines.first
multiline_p = false
else
str = str.gsub(/(\A.*?\n).*/m, "\\1...")
str = str.gsub(/(\A.*?\n).*/m, "\\1...\e[0m")
end
else
output_width = Reline::Unicode.calculate_width(@context.return_format % str, true)
Expand Down

0 comments on commit b5f953d

Please sign in to comment.