mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 20:08:48 +00:00
When a pane is not restored, don't restore it's program
This commit is contained in:
parent
d606106f1c
commit
a0a3f2fd56
@ -2,6 +2,9 @@
|
||||
|
||||
### master
|
||||
- tweak 'new_pane' creation strategy to fix #36
|
||||
- when running multiple tmux server and for a large number of panes (120 +) when
|
||||
doing a restore, some panes might not be created. When that is the case also
|
||||
don't restore programs for those panes.
|
||||
|
||||
### v1.2.0, 2014-09-01
|
||||
- new feature: inline strategies when restoring a program
|
||||
|
@ -43,6 +43,9 @@ _process_should_be_restored() {
|
||||
# Scenario where pane existed before restoration, so we're not
|
||||
# restoring the proces either.
|
||||
return 1
|
||||
elif ! pane_exists "$session_name" "$window_number" "$pane_index"; then
|
||||
# pane number limit exceeded, pane does not exist
|
||||
return 1
|
||||
elif _restore_all_processes; then
|
||||
return 0
|
||||
elif _process_on_the_restore_list "$pane_full_command"; then
|
||||
|
Loading…
Reference in New Issue
Block a user