diff options
| -rw-r--r-- | todolist/app.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/todolist/app.go b/todolist/app.go index 6d771ef..1e9f699 100644 --- a/todolist/app.go +++ b/todolist/app.go @@ -93,12 +93,15 @@ func (a *App) UnarchiveTodo(input string) { func (a *App) EditTodoSubject(input string) { a.Load() + _, id, subject := Parser{input}.Parse() - id, todo := a.getId(input) if id == -1 { return } + + _, todo := a.getId(input) todo.Subject = subject + a.Save() fmt.Println("Todo subject updated.") } |
