this repo has no description
13
fork

Configure Feed

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

LineNumbers: usize -> u16 casts

authored by

Jari Vetoniemi and committed by
Tim Culverhouse
a6184886 263412c9

+2 -2
+2 -2
src/widgets/LineNumbers.zig
··· 35 35 const num_digits = numDigits(line); 36 36 for (0..num_digits) |i| { 37 37 const digit = extractDigit(line, i); 38 - win.writeCell(win.width -| (i + 2), line -| (y_scroll +| 1), .{ 38 + win.writeCell(@intCast(win.width -| (i + 2)), @intCast(line -| (y_scroll +| 1)), .{ 39 39 .char = .{ 40 40 .width = 1, 41 41 .grapheme = digits[digit .. digit + 1], ··· 45 45 } 46 46 if (highlighted) { 47 47 for (num_digits + 1..win.width) |i| { 48 - win.writeCell(i, line -| (y_scroll +| 1), .{ 48 + win.writeCell(@intCast(i), @intCast(line -| (y_scroll +| 1)), .{ 49 49 .style = if (highlighted) self.highlighted_style else self.style, 50 50 }); 51 51 }