Merge 5edd0a6836
into cff343cf9e
commit
fd1e858279
|
@ -14,7 +14,6 @@ restore_pane_process() {
|
|||
local pane_index="$4"
|
||||
local dir="$5"
|
||||
local command
|
||||
if _process_should_be_restored "$pane_full_command" "$session_name" "$window_number" "$pane_index"; then
|
||||
tmux switch-client -t "${session_name}:${window_number}"
|
||||
tmux select-pane -t "$pane_index"
|
||||
|
||||
|
@ -35,7 +34,9 @@ restore_pane_process() {
|
|||
# just invoke the raw command
|
||||
command="$pane_full_command"
|
||||
fi
|
||||
tmux send-keys -t "${session_name}:${window_number}.${pane_index}" "$command" "C-m"
|
||||
tmux send-keys -t "${session_name}:${window_number}.${pane_index}" "$command"
|
||||
if _process_should_be_restored "$pane_full_command" "$session_name" "$window_number" "$pane_index"; then
|
||||
tmux send-keys -t "${session_name}:${window_number}.${pane_index}" "C-m"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue