Sync OpenBSD patchset 393:

Similarly add a tty_cursor_pane function to tidy up most of the calls.
This commit is contained in:
Tiago Cunha
2009-10-15 01:30:00 +00:00
parent 6369fca253
commit 8bdcc10c8f
4 changed files with 53 additions and 41 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.208 2009-10-15 01:28:14 tcunha Exp $ */
/* $Id: server.c,v 1.209 2009-10-15 01:30:00 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -1057,9 +1057,9 @@ server_handle_client(struct client *c)
status = options_get_number(oo, "status");
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status)
tty_cursor(&c->tty, 0, 0, 0, 0);
tty_cursor(&c->tty, 0, 0);
else
tty_cursor(&c->tty, s->cx, s->cy, wp->xoff, wp->yoff);
tty_cursor(&c->tty, wp->xoff + s->cx, wp->yoff + s->cy);
mode = s->mode;
if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL &&