When a pane is not restored, don't restore it's program

pull/54/head
Bruno Sutic 2014-09-02 22:47:38 +02:00
parent d606106f1c
commit a0a3f2fd56
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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