mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Fix crash if SIXEL colour register is invalid and remove SIXEL images before
reflow to avoid a different crash, from Anindya Mukherjee.
This commit is contained in:
		
							
								
								
									
										6
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								screen.c
									
									
									
									
									
								
							@@ -308,12 +308,12 @@ screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
 | 
			
		||||
	if (sy != screen_size_y(s))
 | 
			
		||||
		screen_resize_y(s, sy, eat_empty, &cy);
 | 
			
		||||
 | 
			
		||||
	if (reflow) {
 | 
			
		||||
#ifdef ENABLE_SIXEL
 | 
			
		||||
		image_free_all(s);
 | 
			
		||||
	image_free_all(s);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	if (reflow)
 | 
			
		||||
		screen_reflow(s, sx, &cx, &cy, cursor);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (cy >= s->grid->hsize) {
 | 
			
		||||
		s->cx = cx;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user