Fix to mention rendering
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user