From 762459954f1b8f00f93780212053288d6096a611 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 12 Oct 2009 09:29:58 +0000 Subject: Similarly add a tty_cursor_pane function to tidy up most of the calls. --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 6360be1d..2906fb87 100644 --- a/server.c +++ b/server.c @@ -1054,9 +1054,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