mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add formats to show if pane is the marked pane and if any marked pane is set.
This commit is contained in:
		
							
								
								
									
										6
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								format.c
									
									
									
									
									
								
							@@ -2036,6 +2036,12 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
	else
 | 
			
		||||
		format_add(ft, "pane_dead", "0");
 | 
			
		||||
 | 
			
		||||
	if (server_check_marked() && marked_pane.wp == wp)
 | 
			
		||||
		format_add(ft, "pane_marked", "1");
 | 
			
		||||
	else
 | 
			
		||||
		format_add(ft, "pane_marked", "0");
 | 
			
		||||
	format_add(ft, "pane_marked_set", "%d", server_check_marked());
 | 
			
		||||
 | 
			
		||||
	format_add(ft, "pane_left", "%u", wp->xoff);
 | 
			
		||||
	format_add(ft, "pane_top", "%u", wp->yoff);
 | 
			
		||||
	format_add(ft, "pane_right", "%u", wp->xoff + wp->sx - 1);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user