summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gmdocument.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index a57bbc21..3c3c0d4f 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -244,7 +244,8 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li
244 iChar icon = 0; 244 iChar icon = 0;
245 int len = 0; 245 int len = 0;
246 if ((len = decodeBytes_MultibyteChar(desc.start, size_Range(&desc), &icon)) > 0) { 246 if ((len = decodeBytes_MultibyteChar(desc.start, size_Range(&desc), &icon)) > 0) {
247 if (desc.start + len < desc.end && (isSymbol_Char(icon) || isEmoji_Char(icon)) && 247 if (desc.start + len < desc.end &&
248 (isPictograph_Char(icon) || isEmoji_Char(icon)) &&
248 !isFitzpatrickType_Char(icon)) { 249 !isFitzpatrickType_Char(icon)) {
249 link->flags |= iconFromLabel_GmLinkFlag; 250 link->flags |= iconFromLabel_GmLinkFlag;
250 link->labelIcon = (iRangecc){ desc.start, desc.start + len }; 251 link->labelIcon = (iRangecc){ desc.start, desc.start + len };