mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Remove format_create_flags and just pass flags to format_create.
This commit is contained in:
		
							
								
								
									
										8
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								status.c
									
									
									
									
									
								
							@@ -500,9 +500,9 @@ status_replace(struct client *c, struct winlink *wl, const char *fmt, time_t t)
 | 
			
		||||
		return (xstrdup(""));
 | 
			
		||||
 | 
			
		||||
	if (c->flags & CLIENT_STATUSFORCE)
 | 
			
		||||
		ft = format_create_flags(FORMAT_STATUS|FORMAT_FORCE);
 | 
			
		||||
		ft = format_create(FORMAT_STATUS|FORMAT_FORCE);
 | 
			
		||||
	else
 | 
			
		||||
		ft = format_create_flags(FORMAT_STATUS);
 | 
			
		||||
		ft = format_create(FORMAT_STATUS);
 | 
			
		||||
	format_defaults(ft, c, NULL, wl, NULL);
 | 
			
		||||
 | 
			
		||||
	expanded = format_expand_time(ft, fmt, t);
 | 
			
		||||
@@ -661,7 +661,7 @@ status_prompt_set(struct client *c, const char *msg, const char *input,
 | 
			
		||||
	int			 keys;
 | 
			
		||||
	time_t			 t;
 | 
			
		||||
 | 
			
		||||
	ft = format_create();
 | 
			
		||||
	ft = format_create(0);
 | 
			
		||||
	format_defaults(ft, c, NULL, NULL, NULL);
 | 
			
		||||
	t = time(NULL);
 | 
			
		||||
 | 
			
		||||
@@ -722,7 +722,7 @@ status_prompt_update(struct client *c, const char *msg, const char *input)
 | 
			
		||||
	struct format_tree	*ft;
 | 
			
		||||
	time_t			 t;
 | 
			
		||||
 | 
			
		||||
	ft = format_create();
 | 
			
		||||
	ft = format_create(0);
 | 
			
		||||
	format_defaults(ft, c, NULL, NULL, NULL);
 | 
			
		||||
	t = time(NULL);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user