diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-30 10:33:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-30 10:33:58 +0000 |
commit | 161cd4d2783d49053b348d38c58dabbcc85a1ee4 (patch) | |
tree | 03ea6ba1e550e2c536ca5c0c85ae1a5098b37668 /usr.bin/tmux/cmd-new-session.c | |
parent | 1e50d662d6bf80338f9b428fbbde6c7077a0df3f (diff) |
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/cmd-new-session.c')
-rw-r--r-- | usr.bin/tmux/cmd-new-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c index 41c8553c0c3..91cfbe5ca3c 100644 --- a/usr.bin/tmux/cmd-new-session.c +++ b/usr.bin/tmux/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-session.c,v 1.108 2017/07/21 09:17:19 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.109 2017/08/30 10:33:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -325,10 +325,10 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) if (!detached) { c->flags |= CLIENT_ATTACHED; - cmd_find_from_session(&item->shared->current, s); + cmd_find_from_session(&item->shared->current, s, 0); } - cmd_find_from_session(&fs, s); + cmd_find_from_session(&fs, s, 0); hooks_insert(s->hooks, item, &fs, "after-new-session"); free(to_free); |