Skip to content

Commit

Permalink
remove passed in global
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Oct 9, 2023
1 parent 58e9f43 commit 5bcc4e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def init() -> None:
curses.init_pair(i, color, -1)


def main(stdscr: Any, header: str) -> int:
def main(stdscr: Any) -> int:
init()
todos = validate_file(read_file(FILENAME))
selected = Cursor(0)
Expand Down Expand Up @@ -850,7 +850,7 @@ def main(stdscr: Any, header: str) -> int:
edits += 1
if is_file_externally_updated(FILENAME, todos):
todos = validate_file(read_file(FILENAME))
set_header(stdscr, f"{header}:")
set_header(stdscr, f"{HEADER}:")
sublist_top = print_todos(stdscr, todos, selected, sublist_top)
stdscr.refresh()
if mode.is_not_on():
Expand Down Expand Up @@ -884,4 +884,4 @@ def main(stdscr: Any, header: str) -> int:
print(f"{HEADER}:")
print_todos(None, validate_file(read_file(FILENAME)), Cursor(0))
sys_exit()
curses.wrapper(main, header=HEADER)
curses.wrapper(main)

0 comments on commit 5bcc4e0

Please sign in to comment.