this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

Adding saturating subtraction for w

authored by

Shem Sedrick and committed by
Tim Culverhouse
2094e0c3 306acc7a

+2 -2
+2 -2
src/Window.zig
··· 170 170 if (loc.top and loc.left) 171 171 result.writeCell(0, 0, .{ .char = top_left, .style = style }); 172 172 if (loc.top and loc.right) 173 - result.writeCell(w - 1, 0, .{ .char = top_right, .style = style }); 173 + result.writeCell(w -| 1, 0, .{ .char = top_right, .style = style }); 174 174 if (loc.bottom and loc.left) 175 175 result.writeCell(0, h -| 1, .{ .char = bottom_left, .style = style }); 176 176 if (loc.bottom and loc.right) 177 - result.writeCell(w - 1, h -| 1, .{ .char = bottom_right, .style = style }); 177 + result.writeCell(w -| 1, h -| 1, .{ .char = bottom_right, .style = style }); 178 178 179 179 const x_off: usize = if (loc.left) 1 else 0; 180 180 const y_off: usize = if (loc.top) 1 else 0;