mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
The default terminal size should be 80x24, not 80x25.
This commit is contained in:
parent
8548624676
commit
f39865e8e4
@ -197,7 +197,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
/* Find new session size. */
|
||||
if (detached) {
|
||||
sx = 80;
|
||||
sy = 25;
|
||||
sy = 24;
|
||||
} else if (ctx->cmdclient != NULL) {
|
||||
sx = ctx->cmdclient->tty.sx;
|
||||
sy = ctx->cmdclient->tty.sy;
|
||||
|
@ -248,7 +248,7 @@ server_msg_identify(struct client *c, struct msg_identify_data *data, int fd)
|
||||
c->tty.sx = 80;
|
||||
c->tty.sy = data->sy;
|
||||
if (c->tty.sy == 0)
|
||||
c->tty.sy = 25;
|
||||
c->tty.sy = 24;
|
||||
|
||||
c->cwd = NULL;
|
||||
data->cwd[(sizeof data->cwd) - 1] = '\0';
|
||||
@ -278,7 +278,7 @@ server_msg_resize(struct client *c, struct msg_resize_data *data)
|
||||
c->tty.sx = 80;
|
||||
c->tty.sy = data->sy;
|
||||
if (c->tty.sy == 0)
|
||||
c->tty.sy = 25;
|
||||
c->tty.sy = 24;
|
||||
|
||||
c->tty.cx = UINT_MAX;
|
||||
c->tty.cy = UINT_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user