diff options
author | nwin <nwin@users.noreply.github.com> | 2015-02-22 18:36:11 +0100 |
---|---|---|
committer | nwin <nwin@users.noreply.github.com> | 2015-02-22 18:36:11 +0100 |
commit | 8ac16fad8a7a2863fbcb0c965e4c4eafa8f35177 (patch) | |
tree | 3e59344ed459a04c0fb1f3f26643815284a8a42c /src/column.rs | |
parent | df909272a10a1eadc4f8c1101b547998ef95897e (diff) |
Using convenience method and using extended clusters as recommended.
Diffstat (limited to 'src/column.rs')
-rw-r--r-- | src/column.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/column.rs b/src/column.rs index 1a348ec..e6d07e6 100644 --- a/src/column.rs +++ b/src/column.rs @@ -86,7 +86,7 @@ impl Cell { pub fn paint(style: Style, string: &str) -> Cell { Cell { text: style.paint(string).to_string(), - length: string.graphemes(true).count(), + length: string.width(true), } } } |