this repo has no description
13
fork

Configure Feed

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

zig fmt (0.14.0 had some formatter changes)

+11 -11
+3 -3
examples/scroll.zig
··· 86 86 } 87 87 self.scroll_bars.estimated_content_height = 88 88 if (self.scroll_bars.estimated_content_height == 800) 89 - @intCast(self.rows.items.len) 90 - else 91 - 800; 89 + @intCast(self.rows.items.len) 90 + else 91 + 800; 92 92 93 93 return ctx.consumeAndRedraw(); 94 94 }
+1 -1
examples/table.zig
··· 171 171 }, 172 172 .btm => { 173 173 if (key.matchesAny(&.{ vaxis.Key.up, 'k' }, .{}) and moving) active = .mid 174 - // Run Command and Clear Command Bar 174 + // Run Command and Clear Command Bar 175 175 else if (key.matchExact(vaxis.Key.enter, .{}) or key.matchExact('j', .{ .ctrl = true })) { 176 176 const cmd = try cmd_input.toOwnedSlice(); 177 177 defer alloc.free(cmd);
+1 -1
src/Image.zig
··· 121 121 .rows = win.height, 122 122 } 123 123 124 - // Does the image require horizontal scaling? 124 + // Does the image require horizontal scaling? 125 125 else if (!fit_x and fit_y) 126 126 p_opts.size = .{ 127 127 .cols = win.width,
+6 -6
src/vxfw/ScrollBars.zig
··· 489 489 }; 490 490 const max_content_width_f: f32 = 491 491 if (self.scroll_view.scroll.left + max.width > max_content_width) 492 - // If we've managed to overscroll horizontally for whatever reason - for example if the 493 - // content changes - we make sure the scroll thumb doesn't disappear by increasing the 494 - // max content width to match the current overscrolled position. 495 - @floatFromInt(self.scroll_view.scroll.left + max.width) 496 - else 497 - @floatFromInt(max_content_width); 492 + // If we've managed to overscroll horizontally for whatever reason - for example if the 493 + // content changes - we make sure the scroll thumb doesn't disappear by increasing the 494 + // max content width to match the current overscrolled position. 495 + @floatFromInt(self.scroll_view.scroll.left + max.width) 496 + else 497 + @floatFromInt(max_content_width); 498 498 499 499 self.last_frame_max_content_width = max_content_width; 500 500