Skip to content

Commit

Permalink
debug: find cause of strikethrough error
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Mar 19, 2024
1 parent f88dd9c commit aef6481
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/print_todos.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def _is_within_strikethrough_range(
counter: int, todo: Todo, display_string: str, window_width: int
) -> bool:
# make sure to test with -s and -sx
# with open("debugging/log.txt", "w") as f:
# f.write(f"{display_string=}\n{len(display_string.rstrip())=}\n{todo=}\n{todo.get_display_text()=}\n{counter=}")
# issue lies with Alacritty terminal
offset = len(display_string.rstrip()) - len(todo.get_display_text())
return (
offset
Expand Down

0 comments on commit aef6481

Please sign in to comment.