From f99f77116aa6e5764d384ed14db83fb4649c7bfe Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Tue, 30 Apr 2024 12:33:27 -0500 Subject: [PATCH] refactor: rename variable --- todo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todo.py b/todo.py index 8cbdf11..68bfc00 100755 --- a/todo.py +++ b/todo.py @@ -357,8 +357,8 @@ def _handle_enter( selected: Cursor, mode: SingleLineModeImpl, ) -> Todos: - prev_todo = todos[int(selected)] if len(todos) > 0 else Todo() - if prev_todo.has_box(): + todo = todos[int(selected)] if len(todos) > 0 else Todo() + if todo.has_box(): return toggle(todos, selected) return new_todo_next(stdscr, todos, selected, Todo(), mode=mode)