summaryrefslogtreecommitdiff
path: root/git_crecord
diff options
context:
space:
mode:
Diffstat (limited to 'git_crecord')
-rw-r--r--git_crecord/crpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_crecord/crpatch.py b/git_crecord/crpatch.py
index c0dbea1..1055e0e 100644
--- a/git_crecord/crpatch.py
+++ b/git_crecord/crpatch.py
@@ -622,7 +622,7 @@ class Hunk(PatchNode):
line.offset = toline
if line.diffop == HunkLine.NOEOL:
if not deletes:
- line.offset = fromtoline
+ line.offset = fromline
else:
line.offset = toline