mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Off-by-one in index mapping when consecutive Chinese chars
Found by code rabbit
This commit is contained in:
parent
4b6231ba8b
commit
64a3aa583f
1 changed files with 1 additions and 1 deletions
|
|
@ -107,8 +107,8 @@ namespace Flow.Launcher.Infrastructure
|
|||
string translated = _settings.UseDoublePinyin ? ToDoublePin(resultList[i]) : resultList[i];
|
||||
if (previousIsChinese)
|
||||
{
|
||||
map.AddNewIndex(i, resultBuilder.Length, translated.Length + 1);
|
||||
resultBuilder.Append(' ');
|
||||
map.AddNewIndex(i, resultBuilder.Length, translated.Length + 1);
|
||||
resultBuilder.Append(translated);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue