From 8d200e6ee7d5bcbcc3fe43e7acb2bd3ac0567279 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Sat, 10 Oct 2020 13:25:24 -0600 Subject: [PATCH] Move cursor to end of the line for modify --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0612cee..3a1b233 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,7 +112,7 @@ fn tui_main(_config: &str) -> Result<(), Box> { 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), } }