From 834444b91865a7590e0efd74338ce0821c436ea2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 Feb 2025 11:05:28 +0530 Subject: [PATCH] ... --- kitty/fonts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts.c b/kitty/fonts.c index 4b6c446ea..89acfdd79 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -1111,7 +1111,7 @@ load_hb_buffer(CPUCell *first_cpu_cell, index_type num_cells, const TextCache *t for (; num_cells; first_cpu_cell++, num_cells--) { if (first_cpu_cell->is_multicell && first_cpu_cell->x) continue; text_in_cell(first_cpu_cell, tc, lc); - ensure_space_for((&shape_buffer), codepoints, char_type, lc->count + num, capacity, 512, false); + ensure_space_for((&shape_buffer), codepoints, shape_buffer.codepoints[0], lc->count + num, capacity, 512, false); memcpy(shape_buffer.codepoints + num, lc->chars, lc->count * sizeof(shape_buffer.codepoints[0])); num += lc->count; }