summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-09 08:40:11 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-09 08:40:11 +0200
commit749e3811ddffc17cf406854b117573bf71485fdf (patch)
tree8a425acfab3d108aeaa55f5e71f8e1add1836f71 /src
parent3b45540312489043c2a0654aea488e3cf1c17728 (diff)
Fixed build
Diffstat (limited to 'src')
-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 };