# tmux 2.4 changed this option, we need it for new created sessions
# or tmux will fail with an unknown option error.

diff -Naur apt-dater-1.0.4.orig/conf/tmux.conf apt-dater-1.0.4/conf/tmux.conf
--- apt-dater-1.0.4.orig/conf/tmux.conf	2019-02-10 22:16:03.000000000 +0100
+++ apt-dater-1.0.4/conf/tmux.conf	2019-04-15 10:02:11.499131926 +0200
@@ -11,7 +11,7 @@
 set -g terminal-overrides 'xterm*:smcup@:rmcup@'
 
 set-option -g history-limit 10000
-set-option -g set-remain-on-exit on
+set-hook -g session-created 'set remain-on-exit on'
 
 # Make C-a q kill the pane (simular to GNU screen)
 bind-key q confirm-before -p "kill-pane #P? (y/n)" kill-pane
