fix: symbol match rendering for unicode symbols

This commit is contained in:
CJ van den Berg 2025-12-26 23:51:11 +01:00
parent 17bb0e96fe
commit 44b323d3dd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -2219,7 +2219,8 @@ pub fn render_symbol(
var len = cbor.decodeArrayHeader(&iter) catch return false;
while (len > 0) : (len -= 1) {
if (cbor.matchValue(&iter, cbor.extract(&index)) catch break) {
render_match_cell(self, 0, index + 2 + icon_width, theme_) catch break;
const col = egc_chunk_width(detail[0..@min(detail.len, index)], 0, 1);
render_match_cell(self, 0, col + 2 + icon_width, theme_) catch break;
} else break;
}
return false;