mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Don't truncate with exactly 128 bytes
This commit is contained in:
@ -100,7 +100,7 @@ namespace osu.Desktop
|
||||
|
||||
private string truncate(ReadOnlySpan<char> str)
|
||||
{
|
||||
if (Encoding.UTF8.GetByteCount(str) < 128)
|
||||
if (Encoding.UTF8.GetByteCount(str) <= 128)
|
||||
return new string(str);
|
||||
|
||||
int ellipsisLength = Encoding.UTF8.GetByteCount(new[] { '…' });
|
||||
|
Reference in New Issue
Block a user