Skip to content

Commit

Permalink
refactor: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 30, 2024
1 parent 0c72e22 commit f99f771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f99f771

Please sign in to comment.