mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-05 20:37:52 +00:00
Count the number of grapheme clusters to determine the cell length.
This commit is contained in:
parent
a4e17193d9
commit
df909272a1
@ -86,7 +86,7 @@ impl Cell {
|
||||
pub fn paint(style: Style, string: &str) -> Cell {
|
||||
Cell {
|
||||
text: style.paint(string).to_string(),
|
||||
length: string.len(),
|
||||
length: string.graphemes(true).count(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user