this repo has no description
56
fork

Configure Feed

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

remove log lines

-8
-8
src/main.zig
··· 262 262 } 263 263 264 264 fn printShortColumns(cmd: Command, writer: anytype) !void { 265 - std.log.debug("here 1", .{}); 266 265 const ws = cmd.opts.winsize orelse return printShortOnePerLine(cmd, writer); 267 - std.log.debug("here 2", .{}); 268 266 if (ws.col == 0) return printShortOnePerLine(cmd, writer); 269 - 270 - std.log.debug("here 3", .{}); 271 267 272 268 const icon_width: u2 = if (cmd.opts.useIcons()) 2 else 0; 273 269 ··· 281 277 var columns: std.ArrayListUnmanaged(Column) = try .initCapacity(cmd.arena, n_cols); 282 278 283 279 outer: while (n_cols > 0) { 284 - std.log.debug("n_cols = {d}", .{n_cols}); 285 280 columns.clearRetainingCapacity(); 286 281 const n_rows = std.math.divCeil(usize, cmd.entries.len, n_cols) catch unreachable; 287 282 const padding = (n_cols - 1) * 2; ··· 298 293 } 299 294 300 295 for (0..n_cols) |i| { 301 - std.log.debug("items={d}, idx={d}", .{ cmd.entries.len, idx }); 302 - std.log.debug("i={d}, n_cols={d}, short_cols={d}, is_short={}", .{ i, n_cols, short_cols, isShortColumn(i, n_cols, short_cols) }); 303 296 const col_entries = if (isShortColumn(i, n_cols, short_cols)) n_rows - 1 else n_rows; 304 297 const entries = cmd.entries[idx .. idx + col_entries]; 305 298 idx += col_entries; ··· 330 323 331 324 if (n_cols <= 1) return printShortOnePerLine(cmd, writer); 332 325 333 - std.log.debug("here 4", .{}); 334 326 const n_rows = std.math.divCeil(usize, cmd.entries.len, columns.items.len) catch unreachable; 335 327 for (0..n_rows) |row| { 336 328 for (columns.items, 0..) |column, i| {