We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821063e commit 10fba08Copy full SHA for 10fba08
src/Views/TextDiffView.axaml.cs
@@ -973,13 +973,9 @@ private void CopyWithoutIndicators()
973
974
var startPosition = selection.StartPosition;
975
var endPosition = selection.EndPosition;
976
-
977
- if (startPosition.Line > endPosition.Line
978
- || startPosition.Line == endPosition.Line && startPosition.Column > endPosition.Column)
979
- {
980
- // swap start and end
+
+ if (startPosition.Location > endPosition.Location)
981
(startPosition, endPosition) = (endPosition, startPosition);
982
- }
983
984
var startIdx = Math.Min(startPosition.Line - 1, lines.Count - 1);
985
var endIdx = Math.Min(endPosition.Line - 1, lines.Count - 1);
0 commit comments