From 1c43fdbea4751de9a84d24be8320712c85045414 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 3 Aug 2021 18:10:41 +0200 Subject: box-drawing: add U+1FB3C-U+1FB6F, U+1FB9A and U+1FB9B MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are the “wedges” from the Unicode 13 “Legacy Computing” symbols. Closes #474 --- render.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index d338301c..b8a013f1 100644 --- a/render.c +++ b/render.c @@ -538,18 +538,15 @@ render_cell(struct terminal *term, pixman_image_t *pix, */ /* Unicode 13 sextants */ - (base >= 0x1fb00 && base <= 0x1fb3b) || - - /* Unicode 13 partial blocks */ - /* TODO: there's more here! */ - (base >= 0x1fb70 && base <= 0x1fb8b)) && + (base >= 0x1fb00 && base <= 0x1fb8b) || + (base >= 0x1fb9a && base <= 0x1fb9b)) && likely(!term->conf->box_drawings_uses_font_glyphs)) { /* Box drawing characters */ size_t idx = base >= 0x1fb00 - ? (base >= 0x1fb70 - ? base - 0x1fb70 + 220 + ? (base >= 0x1fb9a + ? base - 0x1fb9a + 300 : base - 0x1fb00 + 160) : base - 0x2500; xassert(idx < ALEN(term->box_drawing)); -- cgit v1.3