Fix better line selection for
@@ -120,9 +120,7 @@ class TodoView(ui_utils.TreeFrame):
if len(self.tree.get_children()) == 0:
# todo enhance the regex so that a todo within quotes is not shown in the list
# low prio
- self.tree.insert(
- "", "end", values=(tr(INFO_TEXT), tr("No line marked with #todo found"))
- )
+ self.tree.insert("", "end", values=(INFO_TEXT, tr("No line marked with #todo found")))
def clear(self):
self.tree.delete(*self.tree.get_children())
@@ -136,7 +134,7 @@ class TodoView(ui_utils.TreeFrame):
if iid != "":
values = self.tree.item(iid)["values"]
line_no = values[0]
- if line_no and line_no != tr(INFO_TEXT):
+ if line_no and line_no != INFO_TEXT:
editor = get_workbench().get_editor_notebook().get_current_editor()
editor.select_line(line_no)
