Sync OpenBSD patchset 392:

_absolute is redundant, just use tty_region.
This commit is contained in:
Tiago Cunha
2009-10-15 01:28:14 +00:00
parent 9b771a96f0
commit 6369fca253
3 changed files with 9 additions and 7 deletions

8
tty.c
View File

@ -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;