aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index ede91f93..dd1c0ea5 100644
--- a/tty.c
+++ b/tty.c
@@ -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;