mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 08:56:03 +00:00 
			
		
		
		
	Fix restoring active/alternate windows
This commit is contained in:
		@@ -340,7 +340,7 @@ restore_grouped_sessions() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
restore_active_and_alternate_windows() {
 | 
					restore_active_and_alternate_windows() {
 | 
				
			||||||
	awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $4, $3; }' $(last_resurrect_file) |
 | 
						awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $(last_resurrect_file) |
 | 
				
			||||||
		sort -u |
 | 
							sort -u |
 | 
				
			||||||
		while IFS=$d read session_name active_window window_number; do
 | 
							while IFS=$d read session_name active_window window_number; do
 | 
				
			||||||
			tmux switch-client -t "${session_name}:${window_number}"
 | 
								tmux switch-client -t "${session_name}:${window_number}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user