_absolute is redundant, just use tty_region.

This commit is contained in:
Nicholas Marriott
2009-10-12 09:16:59 +00:00
parent f05b32f7ad
commit 972a6f5656
3 changed files with 6 additions and 4 deletions

6
tty.c
View File

@ -893,17 +893,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;