From 5e6a8177e55a8e30e0cd67c7ee3039aa22ff1c0e Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 3 Feb 2017 21:01:02 +0000 Subject: Cache status line position to reduce option lookups during output. --- session.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'session.c') diff --git a/session.c b/session.c index 19a6f139..09c2dc26 100644 --- a/session.c +++ b/session.c @@ -131,6 +131,8 @@ session_create(const char *name, int argc, char **argv, const char *path, s->options = options_create(global_s_options); s->hooks = hooks_create(global_hooks); + status_update_saved(s); + s->tio = NULL; if (tio != NULL) { s->tio = xmalloc(sizeof *s->tio); -- cgit