this repo has no description
13
fork

Configure Feed

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

window(fill): bounds check end condition for fill

Fixes #65

+1 -1
+1 -1
src/Window.zig
··· 218 218 if (self.x_off == 0 and self.width == self.screen.width) { 219 219 // we have a full width window, therefore contiguous memory. 220 220 const start = self.y_off * self.width; 221 - const end = start + (self.height * self.width); 221 + const end = @min(start + (self.height * self.width), self.screen.buf.len); 222 222 @memset(self.screen.buf[start..end], cell); 223 223 } else { 224 224 // Non-contiguous. Iterate over rows an memset