mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										4
									
								
								spawn.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								spawn.c
									
									
									
									
									
								
							@@ -228,9 +228,9 @@ spawn_pane(struct spawn_context *sc, char **cause)
 | 
			
		||||
	 * the pane's stored one unless specified.
 | 
			
		||||
	 */
 | 
			
		||||
	if (sc->cwd != NULL)
 | 
			
		||||
		cwd = format_single(item, sc->cwd, c, s, NULL, NULL);
 | 
			
		||||
		cwd = format_single(item, sc->cwd, c, item->target.s, NULL, NULL);
 | 
			
		||||
	else if (~sc->flags & SPAWN_RESPAWN)
 | 
			
		||||
		cwd = xstrdup(server_client_get_cwd(c, s));
 | 
			
		||||
		cwd = xstrdup(server_client_get_cwd(c, item->target.s));
 | 
			
		||||
	else
 | 
			
		||||
		cwd = NULL;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user