Fix to mention rendering

zio/stable
Paul Frazee 2022-10-04 10:26:33 -05:00
parent 9f4b5fba4f
commit c5ab005908
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ function* toSegments(text: string, entities: Entity[]) {
let currEnt = entities[i] let currEnt = entities[i]
if (cursor < currEnt.index[0]) { if (cursor < currEnt.index[0]) {
yield text.slice(cursor, currEnt.index[0]) yield text.slice(cursor, currEnt.index[0])
} else { } else if (cursor > currEnt.index[0]) {
i++ i++
continue continue
} }