mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add format flags for start and end window.
This commit is contained in:
		
							
								
								
									
										5
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								format.c
									
									
									
									
									
								
							@@ -1797,6 +1797,11 @@ format_defaults_winlink(struct format_tree *ft, struct winlink *wl)
 | 
			
		||||
	format_add(ft, "window_flags", "%s", window_printable_flags(wl));
 | 
			
		||||
	format_add(ft, "window_active", "%d", wl == s->curw);
 | 
			
		||||
 | 
			
		||||
	format_add(ft, "window_start_flag", "%d",
 | 
			
		||||
	    !!(wl == RB_MIN(winlinks, &s->windows)));
 | 
			
		||||
	format_add(ft, "window_end_flag", "%d",
 | 
			
		||||
	    !!(wl == RB_MAX(winlinks, &s->windows)));
 | 
			
		||||
 | 
			
		||||
	format_add(ft, "window_bell_flag", "%d",
 | 
			
		||||
	    !!(wl->flags & WINLINK_BELL));
 | 
			
		||||
	format_add(ft, "window_activity_flag", "%d",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user