repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: a243580024599120bc7fdc1abff976649ea75656:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit a243580024599120bc7fdc1abff976649ea75656
Author: Marc Lehmann 
Date:   Thu Jun 17 14:55:05 2021 +0000

    *** empty log message ***

diff --git a/src/rxvtfont.C b/src/rxvtfont.C
index f0c056934a33f9d3d1ac444e6f62aaad7e00917f..
index ..6fd3c2abd9b445fadab9264c63d4fb4506f118d1 100644
--- a/src/rxvtfont.C
+++ b/src/rxvtfont.C
@@ -1366,6 +1366,7 @@ rxvt_font_xft::has_char (unicode_t unicode, const rxvt_fontprop *prop, bool &car
   careful = false;

 #if ENABLE_COMBINING && !UNICODE_3
+  // handle non-BMP characters when our storage uses 16 bit
   if (ecb_expect_false (IS_COMPOSE (unicode)))
     if (compose_char *cc = rxvt_composite[unicode])
       if (cc->c2 == NOCHAR)
@@ -1434,6 +1435,7 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
       FcChar32 fc = *text++; len--;

 #if ENABLE_COMBINING && !UNICODE_3
+      // handle non-BMP characters when our storage uses 16 bit
       if (ecb_expect_false (IS_COMPOSE (fc)))
         if (compose_char *cc = rxvt_composite[fc]) // should always be true, but better be safe than sorry
           fc = cc->c1; // c2 must be NOCHAR, as has_char handles it that way

-----END OF PAGE-----