Simplify substring
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -322,11 +322,11 @@ namespace WalletWasabi.Fluent.Controls
{
var start = Math.Min(selectionStart, selectionEnd);
var end = Math.Max(selectionStart, selectionEnd);
- preComposedText = preComposedText.Substring(0, start) + preComposedText.Substring(end);
+ preComposedText = preComposedText.Substring(0, start) + preComposedText[end..];
caretIndex = start;
}
- return preComposedText.Substring(0, caretIndex) + input + preComposedText.Substring(caretIndex);
+ return preComposedText.Substring(0, caretIndex) + input + preComposedText[caretIndex..];
}
return "";

Simplify substring