Cleanup previous PR

This commit is contained in:
Kovid Goyal 2022-02-23 07:59:41 +05:30
parent 3c6766ff06
commit 08221489fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -855,7 +855,7 @@ detect_spacer_strategy(hb_font_t *hbf, Font *font) {
// If spacer_strategy is still default, check ### glyph to to confirm strategy // If spacer_strategy is still default, check ### glyph to to confirm strategy
// https://github.com/kovidgoyal/kitty/issues/4721 // https://github.com/kovidgoyal/kitty/issues/4721
if (font->spacer_strategy == SPACERS_BEFORE) { if (font->spacer_strategy == SPACERS_BEFORE) {
CPUCell cpu_cells[3] = {{.ch = '#'}, {.ch = '#'}, {.ch = '#'}}; cpu_cells[0].ch = '#'; cpu_cells[1].ch = '#'; cpu_cells[2].ch = '#';
shape(cpu_cells, gpu_cells, arraysz(cpu_cells), hbf, font, false); shape(cpu_cells, gpu_cells, arraysz(cpu_cells), hbf, font, false);
if (G(num_glyphs) > 1) { if (G(num_glyphs) > 1) {
glyph_index glyph_id = G(info)[G(num_glyphs) - 1].codepoint; glyph_index glyph_id = G(info)[G(num_glyphs) - 1].codepoint;