diff options
Diffstat (limited to 'tui-react/src')
-rw-r--r-- | tui-react/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tui-react/src/lib.rs b/tui-react/src/lib.rs index d66663d..e841d3b 100644 --- a/tui-react/src/lib.rs +++ b/tui-react/src/lib.rs @@ -113,7 +113,7 @@ pub mod util { } pub fn block_width(s: &str) -> u16 { - s.graphemes(true).map(|g| g.width()).sum::<usize>() as u16 + d.width() as u16 } pub mod rect { |