=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.39 retrieving revision 1.40 diff -c -r1.39 -r1.40 *** src/usr.bin/tmux/tty.c 2009/10/12 09:09:35 1.39 --- src/usr.bin/tmux/tty.c 2009/10/12 09:16:59 1.40 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.39 2009/10/12 09:09:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.40 2009/10/12 09:16:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 893,909 **** memcpy(gc, &grid_default_cell, sizeof *gc); } 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); } void ! tty_region_absolute(struct tty *tty, u_int rupper, u_int rlower) { if (tty->rlower == rlower && tty->rupper == rupper) return; --- 893,911 ---- 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(tty, wp->yoff + rupper, wp->yoff + rlower); } + /* Set region at absolute position. */ void ! tty_region(struct tty *tty, u_int rupper, u_int rlower) { if (tty->rlower == rlower && tty->rupper == rupper) return;