Fix to mention rendering
parent
9f4b5fba4f
commit
c5ab005908
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue