From 44b323d3dd14fb2a5e9a9c7edb40f935e832a188 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 26 Dec 2025 23:51:11 +0100 Subject: [PATCH] fix: symbol match rendering for unicode symbols --- src/tui/tui.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tui/tui.zig b/src/tui/tui.zig index d0e0a74..d8c4f75 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -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;