mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 15:35:20 +01:00
This commit is contained in:
committed by
Henning Dieterichs
parent
6288e5db95
commit
ed167f4db7
+4
-1
@@ -633,7 +633,10 @@ export function allowsTrueInlineDiffRendering(mapping: DetailedLineRangeMapping)
|
||||
if (!mapping.innerChanges) {
|
||||
return false;
|
||||
}
|
||||
return mapping.innerChanges.every(c => rangeIsSingleLine(c.modifiedRange) && rangeIsSingleLine(c.originalRange));
|
||||
return mapping.innerChanges.every(c =>
|
||||
(rangeIsSingleLine(c.modifiedRange) && rangeIsSingleLine(c.originalRange))
|
||||
|| c.originalRange.equalsRange(new Range(1, 1, 1, 1))
|
||||
);
|
||||
}
|
||||
|
||||
function rangeIsSingleLine(range: Range): boolean {
|
||||
|
||||
Reference in New Issue
Block a user