mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Fix panic when modifying extended unicode
This commit is contained in:
parent
79f1b9c1e6
commit
79951e8b8b
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue