Fix hyperlink id not being applied to wide cells

Fixes #8796
This commit is contained in:
Kovid Goyal
2025-07-09 12:14:09 +05:30
parent 351275cb8c
commit c681a999d5
3 changed files with 10 additions and 1 deletions

View File

@@ -1174,7 +1174,7 @@ draw_text_loop(Screen *self, const uint32_t *chars, size_t num_chars, text_loop_
} else nuke_multicell_char_at(self, self->cursor->x + 1, self->cursor->y, true);
}
zero_cells(s, fc, s->gp + self->cursor->x);
*fc = (CPUCell){.ch_or_idx=ch, .is_multicell=true, .width=2, .scale=1, .natural_width=true};
*fc = (CPUCell){.ch_or_idx=ch, .is_multicell=true, .width=2, .scale=1, .natural_width=true, .hyperlink_id=s->cc.hyperlink_id};
*second = *fc; second->x = 1;
s->gp[self->cursor->x + 1] = s->gp[self->cursor->x];
s->prev.y = self->cursor->y; s->prev.x = self->cursor->x; s->prev.cc = fc;