Update array2d.c

This commit is contained in:
blueloveTH 2025-12-06 21:43:29 +08:00
parent 096d93697a
commit 195d69676f

View File

@ -208,9 +208,13 @@ static bool array2d_like_render_with_color(int argc, py_Ref argv) {
c11_sbuf__write_sv(&buf, py_tosv(py_retval()));
}
// newline
if(j < self->n_rows - 1) {
curr_fg.u32 = 0;
curr_bg.u32 = 0;
c11_sbuf__write_cstr(&buf, "\x1b[0m\n");
} else {
c11_sbuf__write_cstr(&buf, "\x1b[0m");
}
}
c11_sbuf__py_submit(&buf, py_retval());
return true;