summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-10-16 19:30:53 +0000
committernicm <nicm@openbsd.org>2017-10-16 19:30:53 +0000
commitd75a8bcf221a24f62f699b2c60d9d5e06de6ab21 (patch)
tree32f61e9c9d36b7f71def8aa72c803d936104c7b2 /usr.bin/tmux/tty.c
parentdraft-ietf-tcpm-initcwnd was published as rfc 6928 (diff)
downloadwireguard-openbsd-d75a8bcf221a24f62f699b2c60d9d5e06de6ab21.tar.xz
wireguard-openbsd-d75a8bcf221a24f62f699b2c60d9d5e06de6ab21.zip
Infrastructure for drawing status lines of more than one line in height,
still only one is allowed but this lets tmux draw bigger ones.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index fd18fa81e29..383a9888189 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.295 2017/08/24 08:48:37 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.296 2017/10/16 19:30:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1038,7 +1038,7 @@ tty_write(void (*cmdfn)(struct tty *, const struct tty_ctx *),
ctx->xoff = wp->xoff;
ctx->yoff = wp->yoff;
if (status_at_line(c) == 0)
- ctx->yoff++;
+ ctx->yoff += status_line_size(c->session);
cmdfn(&c->tty, ctx);
}