mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use a separate define for each default format template and strip clutter
from the choose-tree defaults.
This commit is contained in:
		@@ -85,12 +85,10 @@ cmd_list_windows_session(
 | 
			
		||||
	if (template == NULL) {
 | 
			
		||||
		switch (type) {
 | 
			
		||||
		case 0:
 | 
			
		||||
			template = DEFAULT_WINDOW_TEMPLATE \
 | 
			
		||||
				" [layout #{window_layout}] #{window_id}" \
 | 
			
		||||
				"#{?window_active, (active),}";
 | 
			
		||||
			template = LIST_WINDOWS_TEMPLATE;
 | 
			
		||||
			break;
 | 
			
		||||
		case 1:
 | 
			
		||||
			template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE;
 | 
			
		||||
			template = LIST_WINDOWS_WITH_SESSION_TEMPLATE;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user