From 5cc899803a43c73919f9823d4286004c15a227b6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 12:59:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- babi/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babi/file.py b/babi/file.py index 2a09313..c93c505 100644 --- a/babi/file.py +++ b/babi/file.py @@ -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 (