diff options
| -rw-r--r-- | todolist/app.go | 2 | ||||
| -rw-r--r-- | todolist/memory_printer.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/todolist/app.go b/todolist/app.go index ad02569..5703ace 100644 --- a/todolist/app.go +++ b/todolist/app.go @@ -184,7 +184,7 @@ func (a *App) HandleNotes(input string) { } else if parser.ParseShowNote(todo, input) { groups := map[string][]*Todo{} groups[""] = append(groups[""], todo) - a.Printer.Print(&GroupedTodos{Groups: groups}, false) + a.Printer.Print(&GroupedTodos{Groups: groups}, true) return } a.Save() diff --git a/todolist/memory_printer.go b/todolist/memory_printer.go index 62eaa83..d9c504f 100644 --- a/todolist/memory_printer.go +++ b/todolist/memory_printer.go @@ -5,5 +5,5 @@ type MemoryPrinter struct { } func (m *MemoryPrinter) Print(groupedTodos *GroupedTodos, printNotes bool) { - f.Groups = groupedTodos + m.Groups = groupedTodos } |
