Fix panic when modifying extended unicode

This commit is contained in:
Dheepak Krishnamurthy 2021-02-05 10:31:18 -07:00
parent 79f1b9c1e6
commit 79951e8b8b

View file

@ -1376,7 +1376,7 @@ impl TTApp {
match self.task_current() {
Some(t) => {
let s = format!("{} ", t.description());
self.modify.update(&s, s.as_str().graphemes(true).count())
self.modify.update(&s, s.as_str().len())
}
None => self.modify.update("", 0),
}