=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/grid-view.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/tmux/grid-view.c 2009/10/13 15:38:37 1.7 --- src/usr.bin/tmux/grid-view.c 2009/12/03 22:50:10 1.8 *************** *** 1,4 **** ! /* $OpenBSD: grid-view.c,v 1.7 2009/10/13 15:38:37 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: grid-view.c,v 1.8 2009/12/03 22:50:10 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 149,155 **** ny2 = rlower + 1 - py - ny; grid_move_lines(gd, rlower + 1 - ny2, py, ny2); ! grid_clear(gd, 0, py + ny2, gd->sx, ny - ny2); } /* Delete lines. */ --- 149,155 ---- ny2 = rlower + 1 - py - ny; grid_move_lines(gd, rlower + 1 - ny2, py, ny2); ! grid_clear(gd, 0, py + ny2, gd->sx, ny - ny2); } /* Delete lines. */ *************** *** 165,171 **** sy = grid_view_y(gd, gd->sy); grid_move_lines(gd, py, py + ny, sy - py - ny); ! grid_clear(gd, 0, sy - ny, gd->sx, py + ny - (sy - ny)); } /* Delete lines inside scroll region. */ --- 165,171 ---- sy = grid_view_y(gd, gd->sy); grid_move_lines(gd, py, py + ny, sy - py - ny); ! grid_clear(gd, 0, sy - ny, gd->sx, py + ny - (sy - ny)); } /* Delete lines inside scroll region. */ *************** *** 182,188 **** ny2 = rlower + 1 - py - ny; grid_move_lines(gd, py, py + ny, ny2); ! grid_clear(gd, 0, py + ny2, gd->sx, ny - ny2); } /* Insert characters. */ --- 182,188 ---- ny2 = rlower + 1 - py - ny; grid_move_lines(gd, py, py + ny, ny2); ! grid_clear(gd, 0, py + ny2, gd->sx, ny - ny2); } /* Insert characters. */