mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	When expanding a line in order to clear it, we need to use the default
background colour - there may be portions that we do not want to clear with the new background colour.
This commit is contained in:
		
							
								
								
									
										2
									
								
								grid.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								grid.c
									
									
									
									
									
								
							@@ -472,7 +472,7 @@ grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
 | 
			
		||||
			gd->linedata[yy].cellsize = px;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
		grid_expand_line(gd, yy, px + nx, bg);
 | 
			
		||||
		grid_expand_line(gd, yy, px + nx, 8); /* default bg first */
 | 
			
		||||
		for (xx = px; xx < px + nx; xx++)
 | 
			
		||||
			grid_clear_cell(gd, xx, yy, bg);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user