aboutsummaryrefslogtreecommitdiff
path: root/extract.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-20 17:25:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-24 15:30:45 +0000
commitb9ef703eb14ba2357b847b62a715b4e97f690209 (patch)
treec6e65e05499e292a4f51d09453f44d1bdf0f93ad /extract.c
parentMerge branch 'sixel-heap-user-after-free-after-blending' (diff)
wip: grapheme shaping
Diffstat (limited to 'extract.c')
-rw-r--r--extract.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extract.c b/extract.c
index 07144597..8aa1acf3 100644
--- a/extract.c
+++ b/extract.c
@@ -229,12 +229,11 @@ extract_one(const struct terminal *term, const struct row *row,
const struct composed *composed
= &term->composed[cell->wc - CELL_COMB_CHARS_LO];
- if (!ensure_size(ctx, 1 + composed->count))
+ if (!ensure_size(ctx, composed->count))
goto err;
- ctx->buf[ctx->idx++] = composed->base;
for (size_t i = 0; i < composed->count; i++)
- ctx->buf[ctx->idx++] = composed->combining[i];
+ ctx->buf[ctx->idx++] = composed->chars[i];
}
else {