mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Clamp diffs lines after merging
This commit is contained in:
parent
bca72c4938
commit
64d0223aa0
1 changed files with 2 additions and 4 deletions
|
|
@ -87,10 +87,8 @@ function diff(oldText: string, newText: string): DiffChunk[] {
|
|||
}
|
||||
}
|
||||
|
||||
return mergeDiffs(
|
||||
result.map((chunk) =>
|
||||
clampChunkLines(chunk, oldLines.length, newLines.length),
|
||||
),
|
||||
return mergeDiffs(result).map((chunk) =>
|
||||
clampChunkLines(chunk, oldLines.length, newLines.length),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue