mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not crash if moving popup that has exited to a pane, from Michael
Grant in GitHub issue 4312.
This commit is contained in:
		
							
								
								
									
										2
									
								
								popup.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								popup.c
									
									
									
									
									
								
							@@ -353,9 +353,11 @@ popup_make_pane(struct popup_data *pd, enum layout_type type)
 | 
			
		||||
	new_wp = window_add_pane(wp->window, NULL, hlimit, 0);
 | 
			
		||||
	layout_assign_pane(lc, new_wp, 0);
 | 
			
		||||
 | 
			
		||||
	if (pd->job != NULL) {
 | 
			
		||||
		new_wp->fd = job_transfer(pd->job, &new_wp->pid, new_wp->tty,
 | 
			
		||||
		    sizeof new_wp->tty);
 | 
			
		||||
		pd->job = NULL;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	screen_set_title(&pd->s, new_wp->base.title);
 | 
			
		||||
	screen_free(&new_wp->base);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user