mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Strip layout from choose-windows again (leave in list-windows),
suggested by Romain Francoise, diff from Thomas Adam.
This commit is contained in:
		@@ -84,7 +84,9 @@ cmd_list_windows_session(
 | 
				
			|||||||
	if (template == NULL) {
 | 
						if (template == NULL) {
 | 
				
			||||||
		switch (type) {
 | 
							switch (type) {
 | 
				
			||||||
		case 0:
 | 
							case 0:
 | 
				
			||||||
			template = DEFAULT_WINDOW_TEMPLATE;
 | 
								template = DEFAULT_WINDOW_TEMPLATE \
 | 
				
			||||||
 | 
									" [layout #{window_layout}] #{window_id}" \
 | 
				
			||||||
 | 
									" #{?window_active, (active),}";
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		case 1:
 | 
							case 1:
 | 
				
			||||||
			template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE;
 | 
								template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							@@ -117,9 +117,7 @@ extern char   **environ;
 | 
				
			|||||||
#define DEFAULT_WINDOW_TEMPLATE					\
 | 
					#define DEFAULT_WINDOW_TEMPLATE					\
 | 
				
			||||||
	"#{window_index}: #{window_name}#{window_flags} "	\
 | 
						"#{window_index}: #{window_name}#{window_flags} "	\
 | 
				
			||||||
	"(#{window_panes} panes) "				\
 | 
						"(#{window_panes} panes) "				\
 | 
				
			||||||
	"[#{window_width}x#{window_height}] "			\
 | 
						"[#{window_width}x#{window_height}]"
 | 
				
			||||||
	"[layout #{window_layout}] #{window_id}"		\
 | 
					 | 
				
			||||||
	"#{?window_active, (active),}"
 | 
					 | 
				
			||||||
#define DEFAULT_PANE_INFO_TEMPLATE				\
 | 
					#define DEFAULT_PANE_INFO_TEMPLATE				\
 | 
				
			||||||
	"#{session_name}:#{window_index}.#{pane_index}"
 | 
						"#{session_name}:#{window_index}.#{pane_index}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user