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
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 27s
This commit is contained in:
@@ -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
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user