mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Reduce a difference with portable tmux by adding the -V flag and
#{version} format; on OpenBSD these just report the OpenBSD version.
			
			
This commit is contained in:
		
							
								
								
									
										1
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								format.c
									
									
									
									
									
								
							@@ -1106,6 +1106,7 @@ format_create(struct client *c, struct cmdq_item *item, int tag, int flags)
 | 
			
		||||
	ft->flags = flags;
 | 
			
		||||
	ft->time = time(NULL);
 | 
			
		||||
 | 
			
		||||
	format_add(ft, "version", "%s", getversion());
 | 
			
		||||
	format_add_cb(ft, "host", format_cb_host);
 | 
			
		||||
	format_add_cb(ft, "host_short", format_cb_host_short);
 | 
			
		||||
	format_add_cb(ft, "pid", format_cb_pid);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user