Commit 3e8fbdf7 authored by A Farzat's avatar A Farzat
Browse files

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.
parent 1b63a940
...@@ -286,6 +286,7 @@ handle_session_0() { ...@@ -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")"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment