Fix to mention rendering

This commit is contained in:
Paul Frazee 2022-10-04 10:26:33 -05:00
parent 9f4b5fba4f
commit c5ab005908

View file

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