diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-02-03 20:50:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-02-03 20:50:04 +0000 |
commit | 54a340728ec97701036b16d2ff3eb0683e2a4c79 (patch) | |
tree | 376e27edaf3f70c1c51f04138a451c0dcc2a767a /usr.bin/tmux/cmd-new-session.c | |
parent | 7d0e60b729e6d074446e922d9f8acdc09e8067c8 (diff) |
Don't require -d with -x or -y since it could be in the config file.
Diffstat (limited to 'usr.bin/tmux/cmd-new-session.c')
-rw-r--r-- | usr.bin/tmux/cmd-new-session.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c index 2b16680842a..3ff4c5b7140 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.35 2011/01/14 23:49:23 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.36 2011/02/03 20:50:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -49,9 +49,6 @@ cmd_new_session_check(struct args *args) { if (args_has(args, 't') && (args->argc != 0 || args_has(args, 'n'))) return (-1); - if (!args_has(args, 'd') && - (args_has(args, 'x') || args_has(args, 'y'))) - return (-1); return (0); } |