Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 2a1ca29

Browse files
author
Yuncong Zhang
committed
Fix bug.
1 parent a69d0b0 commit 2a1ca29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Runtime/ui/txt/emoji.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static Rect getUVRect(int code) {
255255
}
256256

257257
public static bool isSingleCharEmoji(int c) {
258-
return emojiLookupTable.ContainsKey(c) || isEmptyEmoji(c);
258+
return isSingleCharNonEmptyEmoji(c) || isEmptyEmoji(c);
259259
}
260260

261261
public static bool isSingleCharNonEmptyEmoji(int c) {
@@ -290,6 +290,8 @@ public static List<string> splitByEmoji(string text) {
290290
start = i;
291291
}
292292
}
293+
294+
currentEmoji = true;
293295
}
294296
else {
295297
if (currentEmoji != false) {

0 commit comments

Comments
 (0)