pull/273/merge
Hao Zhang 2023-03-28 07:43:05 +02:00 committed by GitHub
commit fd1e858279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 21 deletions

View File

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