mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
561b83dbc9
Iterating graphemes with `text.graphemes(true)` is somewhat expensive due to the complexity of unicode. However, we were doing it _twice_ in the `Printer::print` method in order to truncate the input text to fit the content area. This changes that method to track the width of the intput text, and only do the grapheme iteration when truncation is actually necessary. |
||
---|---|---|
.. | ||
backend | ||
theme | ||
utils | ||
view | ||
views | ||
align.rs | ||
cursive.rs | ||
direction.rs | ||
div.rs | ||
event.rs | ||
lib.rs | ||
logger.rs | ||
menu.rs | ||
printer.rs | ||
rect.rs | ||
traits.rs | ||
utf8.rs | ||
vec.rs | ||
with.rs | ||
xy.rs |