fix: minor rendering issues caused by notcurses egc overrun
This commit is contained in:
parent
d4afabc844
commit
d900d1c3fd
2 changed files with 3 additions and 3 deletions
|
@ -829,7 +829,7 @@ pub const Editor = struct {
|
|||
return .{ 1, 9 - (abs_col % 8) };
|
||||
}
|
||||
|
||||
inline fn render_egc(c: *nc.Cell, n: nc.Plane, egc: [*c]const u8) struct { usize, usize } {
|
||||
inline fn render_egc(c: *nc.Cell, n: nc.Plane, egc: [:0]const u8) struct { usize, usize } {
|
||||
const bytes = n.cell_load(c, egc) catch return .{ 1, 1 };
|
||||
const colcount = nc.cell_cols(c);
|
||||
return .{ bytes, colcount };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue