mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Clear to start of screen needs to use background colour.
This commit is contained in:
		@@ -943,9 +943,9 @@ screen_write_clearstartofscreen(struct screen_write_ctx *ctx, u_int bg)
 | 
				
			|||||||
	if (s->cy > 0)
 | 
						if (s->cy > 0)
 | 
				
			||||||
		grid_view_clear(s->grid, 0, 0, sx, s->cy, bg);
 | 
							grid_view_clear(s->grid, 0, 0, sx, s->cy, bg);
 | 
				
			||||||
	if (s->cx > sx - 1)
 | 
						if (s->cx > sx - 1)
 | 
				
			||||||
		grid_view_clear(s->grid, 0, s->cy, sx, 1, 8);
 | 
							grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, 8);
 | 
							grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	screen_write_collect_clear(ctx, 0, s->cy);
 | 
						screen_write_collect_clear(ctx, 0, s->cy);
 | 
				
			||||||
	screen_write_collect_flush(ctx, 0);
 | 
						screen_write_collect_flush(ctx, 0);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user