From 4a29ccb82910503fe1c44fbf493caf0945714705 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 13 Jun 2021 15:27:34 +0300 Subject: GmDocument: Link icons --- src/gmdocument.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gmdocument.c b/src/gmdocument.c index 4f4546f2..5d02ee05 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -256,10 +256,12 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li if ((len = decodeBytes_MultibyteChar(desc.start, desc.end, &icon)) > 0) { if (desc.start + len < desc.end && (isPictograph_Char(icon) || isEmoji_Char(icon) || + /* TODO: Add range(s) of 0x2nnn symbols. */ icon == 0x2139 /* info */ || icon == 0x2191 /* up arrow */ || icon == 0x2022 /* bullet */ || - icon == 0x2a2f /* close X */) && + icon == 0x2a2f /* close X */ || + icon == 0x2b50) && !isFitzpatrickType_Char(icon)) { link->flags |= iconFromLabel_GmLinkFlag; link->labelIcon = (iRangecc){ desc.start, desc.start + len }; -- cgit v1.2.3