fix: crash in editor_gutter.print_digits
This commit is contained in:
parent
f26e68b651
commit
c6c310b9d0
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ fn print_digits(self: *Self, n_: anytype, style_: DigitStyle) !void {
|
|||
if (n == 0) break;
|
||||
}
|
||||
std.mem.reverse([]const u8, digits.items);
|
||||
try self.plane.cursor_move_yx(@intCast(self.plane.cursor_y()), @intCast(self.width - digits.items.len - 1));
|
||||
try self.plane.cursor_move_yx(@intCast(self.plane.cursor_y()), @intCast(self.width -| digits.items.len -| 1));
|
||||
for (digits.items) |digit| _ = try self.plane.putstr(digit);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue