We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef5405 commit a350fbbCopy full SHA for a350fbb
whatthepatch/patch.py
@@ -768,7 +768,7 @@ def parse_context_diff(text):
768
changes.append(Change(old + j, None, oline, hunk_n))
769
j += 1
770
del old_hunk[0]
771
- elif nkind == '+' or nkind == '!' and (k != old_len or k == 0):
+ elif nkind == '+' or nkind == '!' and (k != new_len or k == 0):
772
changes.append(Change(None, new + k, nline, hunk_n))
773
k += 1
774
del new_hunk[0]
0 commit comments