diff options
| author | 2009-08-10 19:42:03 +0000 | |
|---|---|---|
| committer | 2009-08-10 19:42:03 +0000 | |
| commit | dde47eaf6b92ffe2fcd63a9437909998debf457d (patch) | |
| tree | d7dc9a53f61da7cc820b5f7aba3a6ae84407c521 /usr.bin/tmux/server.c | |
| parent | A few more simple cases of shutdown hooks which only call xxstop, when (diff) | |
| download | wireguard-openbsd-dde47eaf6b92ffe2fcd63a9437909998debf457d.tar.xz wireguard-openbsd-dde47eaf6b92ffe2fcd63a9437909998debf457d.zip | |
Reset the attributes after drawing all or part of the screen, and reset the
region before poll(2). This reduces (but does not eliminate) the chance of the
attributes not being normal if tmux is disconnected without warning (ssh ~.,
reboot from inside, etc).
Diffstat (limited to 'usr.bin/tmux/server.c')
| -rw-r--r-- | usr.bin/tmux/server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index ae06d571913..e90ee7e1bf3 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.16 2009/08/07 15:39:10 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.17 2009/08/10 19:42:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -866,6 +866,7 @@ server_handle_client(struct client *c) /* Ensure cursor position and mode settings. */ status = options_get_number(&c->session->options, "status"); + tty_region(&c->tty, 0, c->tty.sy - 1, 0); if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status) tty_cursor(&c->tty, 0, 0, 0, 0); else |
