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