mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 00:46:04 +00:00 
			
		
		
		
	Make window_name variable local in restoring func
In restore_window_properties function, the window_name is set globally at first, but now it is first declared as local to prevent that from happening.
This commit is contained in:
		@@ -286,6 +286,7 @@ handle_session_0() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
restore_window_properties() {
 | 
					restore_window_properties() {
 | 
				
			||||||
 | 
						local window_name
 | 
				
			||||||
	\grep '^window' $(last_resurrect_file) |
 | 
						\grep '^window' $(last_resurrect_file) |
 | 
				
			||||||
		while IFS=$d read line_type session_name window_number window_name window_active window_flags window_layout automatic_rename; do
 | 
							while IFS=$d read line_type session_name window_number window_name window_active window_flags window_layout automatic_rename; do
 | 
				
			||||||
			window_name="$(remove_first_char "$window_name")"
 | 
								window_name="$(remove_first_char "$window_name")"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user