Commit a17a0ef5 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Revert "Remove unused variable"

This reverts commit 3513603a.

TodoListWidget actually uses this variable to associate the widget with
the Todo item.

Thanks to @mruwek for the heads up.
parent 735e748d
......@@ -44,6 +44,9 @@ def _markup(p_todo, p_focus):
class TodoWidget(urwid.WidgetWrap):
def __init__(self, p_todo, p_number):
# clients use this to associate this widget with the given todo item
self.todo = p_todo
# pass a None todo list, since we won't use %i or %I here
prio_formatter = ListFormatParser(None, "%{(}p{)}")
text_formatter = ListFormatParser(None, "%s %k\n%h")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment