mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Expand command formats in %if and move the config file loading later (to
when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
This commit is contained in:
		
							
								
								
									
										4
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								format.c
									
									
									
									
									
								
							@@ -2006,10 +2006,10 @@ void
 | 
			
		||||
format_defaults(struct format_tree *ft, struct client *c, struct session *s,
 | 
			
		||||
    struct winlink *wl, struct window_pane *wp)
 | 
			
		||||
{
 | 
			
		||||
	if (c != NULL)
 | 
			
		||||
	if (c != NULL && c->name != NULL)
 | 
			
		||||
		log_debug("%s: c=%s", __func__, c->name);
 | 
			
		||||
	else
 | 
			
		||||
		log_debug("%s: s=none", __func__);
 | 
			
		||||
		log_debug("%s: c=none", __func__);
 | 
			
		||||
	if (s != NULL)
 | 
			
		||||
		log_debug("%s: s=$%u", __func__, s->id);
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user