about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-10-04 10:26:33 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-10-04 10:26:33 -0500
commitc5ab005908457761abe9a1d67d7e1a4a2796a0fe (patch)
tree248f5bc70e0685553d867d4ff64dc4b3ca1f2d01
parent9f4b5fba4f453eda9a8c98f72fd41a2f20ed4389 (diff)
downloadvoidsky-c5ab005908457761abe9a1d67d7e1a4a2796a0fe.tar.zst
Fix to mention rendering
-rw-r--r--src/view/com/util/RichText.tsx2
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
     }