mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							@@ -37,6 +37,7 @@ struct cfg_cond {
 | 
			
		||||
};
 | 
			
		||||
TAILQ_HEAD(cfg_conds, cfg_cond);
 | 
			
		||||
 | 
			
		||||
struct client		 *cfg_client;
 | 
			
		||||
static char		 *cfg_file;
 | 
			
		||||
int			  cfg_finished;
 | 
			
		||||
static char		**cfg_causes;
 | 
			
		||||
@@ -94,7 +95,7 @@ start_cfg(void)
 | 
			
		||||
	 * command queue is currently empty and our callback will be at the
 | 
			
		||||
	 * front - we need to get in before MSG_COMMAND.
 | 
			
		||||
	 */
 | 
			
		||||
	c = TAILQ_FIRST(&clients);
 | 
			
		||||
	cfg_client = c = TAILQ_FIRST(&clients);
 | 
			
		||||
	if (c != NULL) {
 | 
			
		||||
		cfg_item = cmdq_get_callback(cfg_client_done, NULL);
 | 
			
		||||
		cmdq_append(c, cfg_item);
 | 
			
		||||
 
 | 
			
		||||
@@ -1996,6 +1996,8 @@ server_client_get_cwd(struct client *c, struct session *s)
 | 
			
		||||
{
 | 
			
		||||
	const char	*home;
 | 
			
		||||
 | 
			
		||||
	if (!cfg_finished && cfg_client != NULL)
 | 
			
		||||
		return (cfg_client->cwd);
 | 
			
		||||
	if (c != NULL && c->session == NULL && c->cwd != NULL)
 | 
			
		||||
		return (c->cwd);
 | 
			
		||||
	if (s != NULL && s->cwd != NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user