aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/render.c b/render.c
index f5e7f627..92a37d7c 100644
--- a/render.c
+++ b/render.c
@@ -646,17 +646,21 @@ render_cell(struct terminal *term, pixman_image_t *pix,
}
}
-
if (single == NULL && grapheme == NULL) {
- xassert(base != 0);
- single = fcft_rasterize_char_utf32(font, base, term->font_subpixel);
- if (single == NULL) {
+ if (unlikely(base >= CELL_SPACER)) {
glyph_count = 0;
cell_cols = 1;
} else {
- glyph_count = 1;
- glyphs = &single;
+ xassert(base != 0);
+ single = fcft_rasterize_char_utf32(font, base, term->font_subpixel);
+ if (single == NULL) {
+ glyph_count = 0;
+ cell_cols = 1;
+ } else {
+ glyph_count = 1;
+ glyphs = &single;
cell_cols = single->cols;
+ }
}
}
}