mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-09 15:07:17 +00:00
Restore active and alternate windows only if they are present in the 'last' file
This commit is contained in:
@ -142,7 +142,7 @@ dump_grouped_sessions() {
|
||||
# this session "points" to the original session
|
||||
active_window_index="$(get_active_window_index "$session_name")"
|
||||
alternate_window_index="$(get_alternate_window_index "$session_name")"
|
||||
echo "grouped_session${d}${session_name}${d}${original_session}${d}${alternate_window_index}${d}${active_window_index}"
|
||||
echo "grouped_session${d}${session_name}${d}${original_session}${d}:${alternate_window_index}${d}:${active_window_index}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Reference in New Issue
Block a user