fix: prevent minilog getting stuck rendering long messages

This commit is contained in:
CJ van den Berg 2024-04-01 22:16:30 +02:00
parent e2c565dfee
commit f460490510

View file

@ -48,7 +48,7 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool {
self.plane.home(); self.plane.home();
if (self.is_error) if (self.is_error)
tui.set_base_style(&self.plane, " ", theme.editor_error); tui.set_base_style(&self.plane, " ", theme.editor_error);
_ = self.plane.print(" {s} ", .{self.msg.items}) catch return false; _ = self.plane.print(" {s} ", .{self.msg.items}) catch {};
const curr_time = std.time.milliTimestamp(); const curr_time = std.time.milliTimestamp();
if (curr_time < self.clear_time) if (curr_time < self.clear_time)