Fix to mention rendering
This commit is contained in:
parent
9f4b5fba4f
commit
c5ab005908
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue