Skip to content

Commit

Permalink
fix line endings sort of for really long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Dec 12, 2023
1 parent fe8c61f commit cf63ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get_todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_chars_position(

def set_once(mode: SingleLineModeImpl, chars: list[str]) -> str:
mode.set_once()
two_lines = "".join(chars).rsplit(" ", 1)
two_lines = "".join(chars).rsplit(None, 1)
if len(two_lines) == 1:
line = two_lines[0]
mode.set_extra_data(line[-1])
Expand Down

0 comments on commit cf63ea4

Please sign in to comment.