Adding saturating subtraction for w
This commit is contained in:
parent
306acc7a2e
commit
2094e0c364
1 changed files with 2 additions and 2 deletions
|
@ -170,11 +170,11 @@ pub fn child(self: Window, opts: ChildOptions) Window {
|
|||
if (loc.top and loc.left)
|
||||
result.writeCell(0, 0, .{ .char = top_left, .style = style });
|
||||
if (loc.top and loc.right)
|
||||
result.writeCell(w - 1, 0, .{ .char = top_right, .style = style });
|
||||
result.writeCell(w -| 1, 0, .{ .char = top_right, .style = style });
|
||||
if (loc.bottom and loc.left)
|
||||
result.writeCell(0, h -| 1, .{ .char = bottom_left, .style = style });
|
||||
if (loc.bottom and loc.right)
|
||||
result.writeCell(w - 1, h -| 1, .{ .char = bottom_right, .style = style });
|
||||
result.writeCell(w -| 1, h -| 1, .{ .char = bottom_right, .style = style });
|
||||
|
||||
const x_off: usize = if (loc.left) 1 else 0;
|
||||
const y_off: usize = if (loc.top) 1 else 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue