commit 1ab78ac6acf0b3bd51a80c7ce0ca942049eeb708
parent 8babeae6744940da18d314ae9f151dc3c8947071
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Sun, 18 Aug 2013 20:47:14 +0200
exclamate
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -256,7 +256,7 @@ end
class String
def display_length
- @display_length ||= Unicode.width(self.fix_encoding, false)
+ @display_length ||= Unicode.width(self.fix_encoding!, false)
end
def slice_by_display_length len