aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-14 14:49:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-14 14:49:11 +0000
commitdf2927e088ceb2119264d1a970c22a450f00005b (patch)
treef902d442373f54b7f69aa9e0d6d62175427ade34 /render.c
parentterm: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HI (diff)
term: print: write special value CELL_MULT_COL_SPACER to extra cells
When printing a multi-column character, write CELL_MULT_COL_SPACER instead of '0' to both padding cells (when character doesn't fit at the end of the line), and to the cells following the actual character.
Diffstat (limited to 'render.c')
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index d2a278ff..a049ca05 100644
--- a/render.c
+++ b/render.c
@@ -438,7 +438,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
if (has_cursor && term->cursor_style == CURSOR_BLOCK && term->kbd_focus)
draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols);
- if (cell->wc == 0 || cell->attrs.conceal)
+ if (cell->wc == 0 || cell->wc == CELL_MULT_COL_SPACER || cell->attrs.conceal)
goto draw_cursor;
pixman_image_t *clr_pix = pixman_image_create_solid_fill(&fg);