fix: crash on rendering zero width chars

This commit is contained in:
CJ van den Berg 2025-01-06 16:15:59 +01:00
parent e4fef98fcd
commit 206e23a603
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -821,6 +821,10 @@ pub const Editor = struct {
9 => ctx.self.render_tab(c, n, ctx.buf_col),
else => render_egc(c, n, chunk),
};
if (colcount == 0) {
chunk = chunk[bytes..];
continue;
}
var cell_map_val: CellType = switch (chunk[0]) {
32 => .space,
9 => .tab,