Move cursor to end of the line for modify

This commit is contained in:
Dheepak Krishnamurthy 2020-10-10 13:25:24 -06:00
parent 730db811fb
commit 8d200e6ee7

View file

@ -112,7 +112,7 @@ fn tui_main(_config: &str) -> Result<(), Box<dyn Error>> {
Key::Char('m') => {
app.mode = AppMode::TaskModify;
match app.task_current() {
Some(t) => app.modify.update(t.description(), 0),
Some(t) => app.modify.update(t.description(), t.description().len()),
None => app.modify.update("", 0),
}
}