@@ -8,7 +8,7 @@ source "$CURRENT_DIR/process_restore_helpers.sh"
88source " $CURRENT_DIR /spinner_helpers.sh"
99
1010# delimiter
11- d=$' \t '
11+ d=$' \t ; \t '
1212
1313# Global variable.
1414# Used during the restore: if a pane already exists from before, it is
@@ -306,7 +306,7 @@ restore_window_properties() {
306306restore_all_pane_processes () {
307307 if restore_pane_processes_enabled; then
308308 local pane_full_command
309- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $6, $8, $11; }' $( last_resurrect_file) |
309+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $6, $8, $11; }' $( last_resurrect_file) |
310310 while IFS=$d read -r session_name window_number pane_index dir pane_full_command; do
311311 dir=" $( remove_first_char " $dir " ) "
312312 pane_full_command=" $( remove_first_char " $pane_full_command " ) "
@@ -316,15 +316,15 @@ restore_all_pane_processes() {
316316}
317317
318318restore_active_pane_for_each_window () {
319- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $9 == 1 { print $2, $3, $6; }' $( last_resurrect_file) |
319+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $9 == 1 { print $2, $3, $6; }' $( last_resurrect_file) |
320320 while IFS=$d read session_name window_number active_pane; do
321321 tmux switch-client -t " ${session_name} :${window_number} "
322322 tmux select-pane -t " $active_pane "
323323 done
324324}
325325
326326restore_zoomed_windows () {
327- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $5 ~ /Z/ && $9 == 1 { print $2, $3; }' $( last_resurrect_file) |
327+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $5 ~ /Z/ && $9 == 1 { print $2, $3; }' $( last_resurrect_file) |
328328 while IFS=$d read session_name window_number; do
329329 tmux resize-pane -t " ${session_name} :${window_number} " -Z
330330 done
@@ -340,7 +340,7 @@ restore_grouped_sessions() {
340340}
341341
342342restore_active_and_alternate_windows () {
343- awk ' BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $( last_resurrect_file) |
343+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \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