We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79e344 commit 7290b2aCopy full SHA for 7290b2a
1 file changed
Tool/Sources/CodeDiff/CodeDiff.swift
@@ -156,8 +156,8 @@ public struct CodeDiff {
156
157
// handle lines before sections
158
var beforeSection = SnippetDiff.Section(
159
- oldOffset: 0,
160
- newOffset: 0,
+ oldOffset: oldLineIndex,
+ newOffset: newLineIndex,
161
oldSnippet: [],
162
newSnippet: []
163
)
@@ -188,8 +188,8 @@ public struct CodeDiff {
188
// handle lines inside sections
189
190
var insideSection = SnippetDiff.Section(
191
- oldOffset: removalSection?.offset ?? 0,
192
- newOffset: insertionSection?.offset ?? 0,
193
194
195
0 commit comments