Fix to mention rendering

This commit is contained in:
Paul Frazee
2022-10-04 10:26:33 -05:00
parent de7951074a
commit 5b96be04b4
+1 -1
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
}