fix: don't show info view panel on empty hover response
This commit is contained in:
		
							parent
							
								
									a5ebaf6202
								
							
						
					
					
						commit
						dc1d0146be
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -770,6 +770,7 @@ fn add_info_content(
 | 
			
		|||
    end_pos: usize,
 | 
			
		||||
    content: []const u8,
 | 
			
		||||
) tp.result {
 | 
			
		||||
    if (content.len == 0) return;
 | 
			
		||||
    if (!self.is_panel_view_showing(info_view))
 | 
			
		||||
        _ = self.toggle_panel_view(info_view, false) catch |e| return tp.exit_error(e, @errorReturnTrace());
 | 
			
		||||
    const info = self.get_panel_view(info_view) orelse @panic("info_view missing");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue