cursive/src
Chris Vest 561b83dbc9 Avoid iterating graphemes unless we have to.
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.
2019-03-12 21:30:46 +01:00
..
backend Use a single hashmap lookup to determine if a color has been resolved, and to what, instead of two lookups. 2019-03-12 09:54:48 +01:00
theme Remove "extern crate" and rustfmt 2019-02-28 16:04:14 -08:00
utils Fix clippy warnings 2019-03-04 10:31:36 -08:00
view Disable dead code lint for unstable module 2019-03-11 11:52:58 -07:00
views Migrate MenuPopup to new scrollbase 2019-03-08 13:57:05 -08:00
align.rs Fix clippy warnings 2018-05-17 17:35:57 -07:00
cursive.rs Move logic from ScrollView to ScrollCore 2019-03-04 20:08:40 -08:00
direction.rs Update to Rust 2018 2019-02-28 15:54:12 -08:00
div.rs Remove debug lines 2017-10-12 12:30:59 -07:00
event.rs Remove "extern crate" and rustfmt 2019-02-28 16:04:14 -08:00
lib.rs Remove "extern crate" and rustfmt 2019-02-28 16:04:14 -08:00
logger.rs Move logic from ScrollView to ScrollCore 2019-03-04 20:08:40 -08:00
menu.rs Fix clippy warnings 2019-03-04 10:31:36 -08:00
printer.rs Avoid iterating graphemes unless we have to. 2019-03-12 21:30:46 +01:00
rect.rs Remove "extern crate" and rustfmt 2019-02-28 16:04:14 -08:00
traits.rs Update to Rust 2018 2019-02-28 15:54:12 -08:00
utf8.rs Fix clippy warnings 2019-03-04 10:31:36 -08:00
vec.rs Fix clippy warnings 2019-03-04 10:31:36 -08:00
with.rs Add vpv example 2018-04-10 11:46:02 -07:00
xy.rs Update to Rust 2018 2019-02-28 15:54:12 -08:00