mod(container/border): render horizontal borders across entire Container
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 27s

This commit is contained in:
2025-03-02 23:03:00 +01:00
parent 4145ff497b
commit edefc80759
2 changed files with 6 additions and 2 deletions

View File

@@ -73,7 +73,11 @@ pub const Border = packed struct {
}
// render left and right border
if (this.sides.left or this.sides.right) {
for (1..size.rows -| 1) |row| {
var start: usize = 0;
if (this.sides.top) start = 1;
var end = size.rows;
if (this.sides.bottom) end -= 1;
for (start..end) |row| {
const idx = (row * size.cols);
if (this.sides.left) {
cells[idx].cp = frame[3]; // left