mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add pane_last format, GitHub issue 2353.
This commit is contained in:
		
							
								
								
									
										1
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								format.c
									
									
									
									
									
								
							@@ -2909,6 +2909,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
		format_add(ft, "pane_dead", "%d", wp->fd == -1);
 | 
			
		||||
	else
 | 
			
		||||
		format_add(ft, "pane_dead", "0");
 | 
			
		||||
	format_add(ft, "pane_last", "%d", wp == w->last);
 | 
			
		||||
 | 
			
		||||
	if (server_check_marked() && marked_pane.wp == wp)
 | 
			
		||||
		format_add(ft, "pane_marked", "1");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user