summaryrefslogtreecommitdiffstats
path: root/src/column.rs
diff options
context:
space:
mode:
authornwin <nwin@users.noreply.github.com>2015-02-22 18:36:11 +0100
committernwin <nwin@users.noreply.github.com>2015-02-22 18:36:11 +0100
commit8ac16fad8a7a2863fbcb0c965e4c4eafa8f35177 (patch)
tree3e59344ed459a04c0fb1f3f26643815284a8a42c /src/column.rs
parentdf909272a10a1eadc4f8c1101b547998ef95897e (diff)
Using convenience method and using extended clusters as recommended.
Diffstat (limited to 'src/column.rs')
-rw-r--r--src/column.rs2
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),
}
}
}