From 3e8fbdf7aa96799388e9e51bb8bdb20dc6be06fd Mon Sep 17 00:00:00 2001 From: A Farzat Date: Fri, 27 Aug 2021 18:02:00 +0900 Subject: [PATCH] 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. --- scripts/restore.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore.sh b/scripts/restore.sh index cb7a9ae..45a5a80 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -286,6 +286,7 @@ handle_session_0() { } restore_window_properties() { + local window_name \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 window_name="$(remove_first_char "$window_name")"