Skip to content

Commit

Permalink
Update git-hires-merge from upstream (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Jul 12, 2024
1 parent d0c67be commit 6e92b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/merge_tools/git-hires-merge
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ def format_changed_hunk(h1, h2, display, color_added, color_deleted):
# keep track of where the linebreaks are in terms of segment index
splA, splB, lcA, lcB = [], [], [0], [0]
for ln in h1:
segments = re.split('(\W)', ln)
segments = re.split(r'(\W)', ln)
splA += segments
lcA.append(lcA[-1] + len(segments))
for ln in h2:
segments = re.split('(\W)', ln)
segments = re.split(r'(\W)', ln)
splB += segments
lcB.append(lcB[-1] + len(segments))
lcA.pop(0)
Expand Down

0 comments on commit 6e92b59

Please sign in to comment.