lib/cli/ui/truncater.rb in cli-ui-1.4.0 vs lib/cli/ui/truncater.rb in cli-ui-1.5.0
- old
+ new
@@ -81,10 +81,10 @@
# It's specifically for the case where we decided "Yes, this is the
# point at which we'd have to add a truncation!" but it's actually
# the end of the string.
return text if !truncation_index || width <= printing_width
- codepoints[0...truncation_index].pack("U*") + TRUNCATED
+ codepoints[0...truncation_index].pack('U*') + TRUNCATED
end
private
def width(printable_codepoint)