=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/grid.c,v retrieving revision 1.70 retrieving revision 1.71 diff -c -r1.70 -r1.71 *** src/usr.bin/tmux/grid.c 2017/04/25 18:20:51 1.70 --- src/usr.bin/tmux/grid.c 2017/05/12 13:00:56 1.71 *************** *** 1,4 **** ! /* $OpenBSD: grid.c,v 1.70 2017/04/25 18:20:51 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: grid.c,v 1.71 2017/05/12 13:00:56 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 284,290 **** /* Scroll a region up, moving the top line into the history. */ void ! grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower) { struct grid_line *gl_history, *gl_upper, *gl_lower; u_int yy; --- 284,290 ---- /* Scroll a region up, moving the top line into the history. */ void ! grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg) { struct grid_line *gl_history, *gl_upper, *gl_lower; u_int yy; *************** *** 309,315 **** /* Then move the region up and clear the bottom line. */ memmove(gl_upper, gl_upper + 1, (lower - upper) * sizeof *gl_upper); ! memset(gl_lower, 0, sizeof *gl_lower); /* Move the history offset down over the line. */ gd->hscrolled++; --- 309,315 ---- /* Then move the region up and clear the bottom line. */ memmove(gl_upper, gl_upper + 1, (lower - upper) * sizeof *gl_upper); ! grid_empty_line(gd, lower, bg); /* Move the history offset down over the line. */ gd->hscrolled++;