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.
?:
if ... else
1 parent 68e96f4 commit 11af5d9Copy full SHA for 11af5d9
src/Views/TextDiffView.axaml.cs
@@ -1049,11 +1049,7 @@ private void CopyWithoutIndicators()
1049
// For the last line (selection range is within original source)
1050
if (i == endIdx)
1051
{
1052
- if (endPosition.Column < line.Content.Length)
1053
- builder.Append(line.Content.Substring(0, endPosition.Column - 1));
1054
- else
1055
- builder.Append(line.Content);
1056
-
+ builder.Append(endPosition.Column - 1 < line.Content.Length ? line.Content.Substring(0, endPosition.Column - 1) : line.Content);
1057
break;
1058
}
1059
0 commit comments