Early tmate init for the key bindings

This commit is contained in:
Nicolas Viennot 2015-12-23 23:18:35 -05:00
parent 2680e4fa04
commit 75cb217c22

View File

@ -162,6 +162,11 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
RB_INIT(&sessions);
TAILQ_INIT(&session_groups);
mode_key_init_trees();
#ifdef TMATE
tmate_session_init(base);
#endif
key_bindings_init();
gettimeofday(&start_time, NULL);
@ -178,10 +183,6 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
close(lockfd);
}
#ifdef TMATE
tmate_session_init(base);
#endif
start_cfg();
status_prompt_load_history();