mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	A screen can be one cell wide; don't crash if that is the case.
This commit is contained in:
		@@ -427,8 +427,8 @@ screen_write_initctx(
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	/* Save the last cell on the screen. */
 | 
			
		||||
	gc = NULL;
 | 
			
		||||
	for (xx = 1; xx < screen_size_x(s); xx++) {
 | 
			
		||||
	gc = &grid_default_cell;
 | 
			
		||||
	for (xx = 1; xx <= screen_size_x(s); xx++) {
 | 
			
		||||
		gc = grid_view_peek_cell(gd, screen_size_x(s) - xx, s->cy);
 | 
			
		||||
		if (!(gc->flags & GRID_FLAG_PADDING))
 | 
			
		||||
			break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user