Fix translated length

This commit is contained in:
VictoriousRaptor 2025-06-19 21:52:15 +08:00
parent f064a815cf
commit 1bc80d5dd9

View file

@ -106,7 +106,7 @@ namespace Flow.Launcher.Infrastructure
if (previousIsChinese)
{
resultBuilder.Append(' ');
map.AddNewIndex(i, resultBuilder.Length, translated.Length + 1);
map.AddNewIndex(i, resultBuilder.Length, translated.Length);
resultBuilder.Append(translated);
}
else