Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 1, 2024
1 parent 56039ef commit 5cc8998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babi/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __iter__(self) -> _SearchIter:
def calc_past_original_offset(self, y: int, match: Match[str], replacement: str) -> None:
if not self.wrapped or y != self._start_y:
return
self.original_line_change_diff += len(replacement) - (match.end()-match.start())
self.original_line_change_diff += len(replacement) - (match.end() - match.start())

def _stop_if_past_original(self, y: int, match: Match[str]) -> Found:
if (
Expand Down

0 comments on commit 5cc8998

Please sign in to comment.