Skip to content

Commit 0af43e0

Browse files
committed
don't patch line numbers
1 parent d0f055e commit 0af43e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patch/diff.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ function fdiff(head, ii, f1, f2)
118118
end
119119

120120
diff(ii, x1, x2) =
121+
(x1,x2) isa NTuple{2,Union{LineNumberNode,Nothing}} ? Patch([]) :
121122
shouldreplace(x1, x2) ? Patch([Replace(ii, x1, x2)]) :
122123
x1 == x2 ? Patch([]) :
123124
fdiff(x1.head, ii, x1.args, x2.args)

0 commit comments

Comments
 (0)