mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-12-25 00:28:49 +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:
parent
1b63a940a0
commit
3e8fbdf7aa
@ -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")"
|
||||
|
Loading…
Reference in New Issue
Block a user