aboutsummaryrefslogtreecommitdiffstats
path: root/todolist
diff options
context:
space:
mode:
Diffstat (limited to 'todolist')
-rw-r--r--todolist/app.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/todolist/app.go b/todolist/app.go
index 96da67f..66b30c8 100644
--- a/todolist/app.go
+++ b/todolist/app.go
@@ -139,9 +139,11 @@ func (a *App) ExpandTodo(input string) {
func (a *App) ManipulateNotes(input string) {
a.Load()
- id, todo := a.getId(input)
+ id := a.getId(input)
parser := &Parser{}
- if id == -1 {
+ todo := a.TodoList.FindById(id)
+ if todo == nil {
+ fmt.Println("No such id.")
return
}