fix: prevent minilog getting stuck rendering long messages
This commit is contained in:
		
							parent
							
								
									e2c565dfee
								
							
						
					
					
						commit
						f460490510
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool {
 | 
			
		|||
    self.plane.home();
 | 
			
		||||
    if (self.is_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();
 | 
			
		||||
    if (curr_time < self.clear_time)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue