mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Tweak previous slightly so that current session is chosen if it is in
the group rather than first.
This commit is contained in:
		
							
								
								
									
										5
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								format.c
									
									
									
									
									
								
							@@ -795,8 +795,11 @@ format_find(struct format_tree *ft, const char *key, int modifiers)
 | 
			
		||||
			found = s;
 | 
			
		||||
			goto found;
 | 
			
		||||
		}
 | 
			
		||||
		if (fe->value == NULL && fe->cb != NULL)
 | 
			
		||||
		if (fe->value == NULL && fe->cb != NULL) {
 | 
			
		||||
			fe->cb(ft, fe);
 | 
			
		||||
			if (fe->value == NULL)
 | 
			
		||||
				fe->value = xstrdup("");
 | 
			
		||||
		}
 | 
			
		||||
		found = fe->value;
 | 
			
		||||
		goto found;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user