this repo has no description
13
fork

Configure Feed

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

window: use saturating sub in border calcs

+2 -2
+2 -2
src/Window.zig
··· 182 182 const y_off: usize = if (loc.top) 1 else 0; 183 183 const h_delt: usize = if (loc.bottom) 1 else 0; 184 184 const w_delt: usize = if (loc.right) 1 else 0; 185 - const h_ch: usize = h - y_off - h_delt; 186 - const w_ch: usize = w - x_off - w_delt; 185 + const h_ch: usize = h -| y_off -| h_delt; 186 + const w_ch: usize = w -| x_off -| w_delt; 187 187 return result.initChild(x_off, y_off, .{ .limit = w_ch }, .{ .limit = h_ch }); 188 188 } 189 189