diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-15 01:28:14 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-15 01:28:14 +0000 |
commit | 6369fca253fe4e289cbf0a1b8e1c5b52d7875e80 (patch) | |
tree | a0099b9e2832e827f31c84e37af84b0c82ffc077 /tty.c | |
parent | 9b771a96f0a6fb7aeeef565e1c9499a2c6a95f07 (diff) | |
download | rtmux-6369fca253fe4e289cbf0a1b8e1c5b52d7875e80.tar.gz rtmux-6369fca253fe4e289cbf0a1b8e1c5b52d7875e80.tar.bz2 rtmux-6369fca253fe4e289cbf0a1b8e1c5b52d7875e80.zip |
Sync OpenBSD patchset 392:
_absolute is redundant, just use tty_region.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.143 2009-10-15 01:26:50 tcunha Exp $ */ +/* $Id: tty.c,v 1.144 2009-10-15 01:28:14 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -898,17 +898,19 @@ tty_reset(struct tty *tty) memcpy(gc, &grid_default_cell, sizeof *gc); } +/* Set region inside pane. */ void tty_region_pane( struct tty *tty, const struct tty_ctx *ctx, u_int rupper, u_int rlower) { struct window_pane *wp = ctx->wp; - tty_region_absolute(tty, wp->yoff + rupper, wp->yoff + rlower); + tty_region(tty, wp->yoff + rupper, wp->yoff + rlower); } +/* Set region at absolute position. */ void -tty_region_absolute(struct tty *tty, u_int rupper, u_int rlower) +tty_region(struct tty *tty, u_int rupper, u_int rlower) { if (tty->rlower == rlower && tty->rupper == rupper) return; |