Skip to content

Commit 10c6d73

Browse files
authored
Merge pull request #58 from diegoximenes/fix/automatic_restore
Fix automatic restore.
2 parents 4e22796 + 509e898 commit 10c6d73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

continuum.tmux

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ add_resurrect_save_interpolation() {
4444
}
4545

4646
just_started_tmux_server() {
47-
[ "$(tmux display-message -p -F '#{start_time}')" -gt "$(($(date +%s)-10))" ]
47+
local tmux_start_time
48+
tmux_start_time="$(tmux display-message -p -F '#{start_time}')"
49+
[ "$tmux_start_time" == "" ] || [ "$tmux_start_time" -gt "$(($(date +%s)-10))" ]
4850
}
4951

5052
start_auto_restore_in_background() {

0 commit comments

Comments
 (0)