diff options
author | 2009-10-12 09:29:58 +0000 | |
---|---|---|
committer | 2009-10-12 09:29:58 +0000 | |
commit | c222f54155ce527fce9090acd3921dd96d5f85d5 (patch) | |
tree | f634ac46e08e78009f9e5bd40b0804b2552101c1 /usr.bin/tmux/server.c | |
parent | _absolute is redundant, just use tty_region. (diff) | |
download | wireguard-openbsd-c222f54155ce527fce9090acd3921dd96d5f85d5.tar.xz wireguard-openbsd-c222f54155ce527fce9090acd3921dd96d5f85d5.zip |
Similarly add a tty_cursor_pane function to tidy up most of the calls.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index d27d08de8b7..ad1bcf5e421 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.57 2009/10/12 09:16:59 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.58 2009/10/12 09:29:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 && |