diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:26:33 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:26:33 -0500 |
commit | c5ab005908457761abe9a1d67d7e1a4a2796a0fe (patch) | |
tree | 248f5bc70e0685553d867d4ff64dc4b3ca1f2d01 | |
parent | 9f4b5fba4f453eda9a8c98f72fd41a2f20ed4389 (diff) | |
download | voidsky-c5ab005908457761abe9a1d67d7e1a4a2796a0fe.tar.zst |
Fix to mention rendering
-rw-r--r-- | src/view/com/util/RichText.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx index 25e031556..9a07f7a50 100644 --- a/src/view/com/util/RichText.tsx +++ b/src/view/com/util/RichText.tsx @@ -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 } |