this repo has no description
13
fork

Configure Feed

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

vxfw(ListView): use saturating subtraction in ListView.nextItem

Fixes: #191

+1 -1
+1 -1
src/vxfw/ListView.zig
··· 130 130 pub fn nextItem(self: *ListView, ctx: *vxfw.EventContext) void { 131 131 // If we have a count, we can handle this directly 132 132 if (self.item_count) |count| { 133 - if (self.cursor >= count - 1) { 133 + if (self.cursor >= count -| 1) { 134 134 return ctx.consumeEvent(); 135 135 } 136 136 self.cursor += 1;