Skip to content

Commit ca6468e

Browse files
committed
Fix restoring active/alternate windows
1 parent 6050d2d commit ca6468e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/restore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ restore_grouped_sessions() {
340340
}
341341

342342
restore_active_and_alternate_windows() {
343-
awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $4, $3; }' $(last_resurrect_file) |
343+
awk 'BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $(last_resurrect_file) |
344344
sort -u |
345345
while IFS=$d read session_name active_window window_number; do
346346
tmux switch-client -t "${session_name}:${window_number}"

0 commit comments

Comments
 (0)