Skip to content

Commit 3e8fbdf

Browse files
committed
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.
1 parent 1b63a94 commit 3e8fbdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/restore.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ handle_session_0() {
286286
}
287287

288288
restore_window_properties() {
289+
local window_name
289290
\grep '^window' $(last_resurrect_file) |
290291
while IFS=$d read line_type session_name window_number window_name window_active window_flags window_layout automatic_rename; do
291292
window_name="$(remove_first_char "$window_name")"

0 commit comments

Comments
 (0)