Cache status line position to reduce option lookups during output.

This commit is contained in:
nicm
2017-02-03 21:01:02 +00:00
parent 75adf8368a
commit 5e6a8177e5
5 changed files with 23 additions and 6 deletions

View File

@ -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);