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:
A Farzat 2021-08-27 18:02:00 +09:00
parent 1b63a940a0
commit 3e8fbdf7aa

View File

@ -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")"