1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +08:00

Don't truncate with exactly 128 bytes

This commit is contained in:
smoogipoo 2019-12-23 19:56:05 +09:00
parent bc0c331c33
commit f1f9e1f658

View File

@ -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[] { '…' });