From 8bdcc10c8f08dd14797c0e49c18809aff60a2390 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 15 Oct 2009 01:30:00 +0000 Subject: Sync OpenBSD patchset 393: Similarly add a tty_cursor_pane function to tidy up most of the calls. --- server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 03c79d78..fa587e4c 100644 --- a/server.c +++ b/server.c @@ -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 @@ -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 && -- cgit