aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-12 16:02:37 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-12 16:02:37 +0000
commit162d3cb1f47529606d7fb70b46fc9f61af8e8cae (patch)
tree8f45bc15ef43f3aa1807ac6ba01a6e298632c0f3 /cmd-new-session.c
parent7d2004a8dd372d5e165232075b42e7b019dae969 (diff)
parent028f9d1d879255f9dbb80df53f44d37736b68e00 (diff)
downloadrtmux-162d3cb1f47529606d7fb70b46fc9f61af8e8cae.tar.gz
rtmux-162d3cb1f47529606d7fb70b46fc9f61af8e8cae.tar.bz2
rtmux-162d3cb1f47529606d7fb70b46fc9f61af8e8cae.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 162a50bd..e1be350b 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -222,9 +222,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
if (!detached && !is_control) {
sx = c->tty.sx;
sy = c->tty.sy;
- if (!is_control &&
- sy > 0 &&
- options_get_number(global_s_options, "status"))
+ if (sy > 0 && options_get_number(global_s_options, "status"))
sy--;
} else {
value = options_get_string(global_s_options, "default-size");