diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-17 09:02:36 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-17 09:02:36 +0100 |
commit | eb064e8a6240124787e473c504641d29b7c58998 (patch) | |
tree | 3a696bf3d57794deb9163a72f2438e89912b619f /cmd-new-session.c | |
parent | d9ac0e7576496982045b6012c4f1ed70a3de248d (diff) | |
parent | 9b83b1daa6caee4d2c665c26da37866712c555a8 (diff) | |
download | rtmux-eb064e8a6240124787e473c504641d29b7c58998.tar.gz rtmux-eb064e8a6240124787e473c504641d29b7c58998.tar.bz2 rtmux-eb064e8a6240124787e473c504641d29b7c58998.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 6818ce9c..2fd13420 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -192,6 +192,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) if (strcmp(tmp, "-") == 0) { if (c != NULL) dsx = c->tty.sx; + else + dsx = 80; } else { dsx = strtonum(tmp, 1, USHRT_MAX, &errstr); if (errstr != NULL) { @@ -205,6 +207,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) if (strcmp(tmp, "-") == 0) { if (c != NULL) dsy = c->tty.sy; + else + dsy = 24; } else { dsy = strtonum(tmp, 1, USHRT_MAX, &errstr); if (errstr != NULL) { |