Skip to content

Commit 555a4e0

Browse files
committed
Reverts back changes in save/restore shell history functions.
1 parent a516947 commit 555a4e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/restore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ restore_window_properties() {
312312
}
313313

314314
restore_shell_history() {
315-
awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ { print $2, $3, $6, $10; }' $(last_resurrect_file) |
315+
awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ { print $2, $3, $6, $9; }' $(last_resurrect_file) |
316316
while IFS=$d read session_name window_number pane_index pane_command; do
317317
if ! is_pane_registered_as_existing "$session_name" "$window_number" "$pane_index"; then
318318
local pane_id="$session_name:$window_number.$pane_index"

scripts/save.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ dump_pane_contents() {
268268

269269
dump_shell_history() {
270270
dump_panes |
271-
while IFS=$d read line_type session_name window_number window_active window_flags pane_index pane_title dir pane_active pane_command full_command; do
271+
while IFS=$d read line_type session_name window_number window_active window_flags pane_index dir pane_active pane_command full_command; do
272272
save_shell_history "$session_name:$window_number.$pane_index" "$pane_command" "$full_command"
273273
done
274274
}

0 commit comments

Comments
 (0)