version 1.72, 2017/05/12 15:18:13 |
version 1.73, 2017/05/13 07:30:50 |
|
|
void |
void |
grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg) |
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; |
struct grid_line *gl_history, *gl_upper; |
u_int yy; |
u_int yy; |
|
|
/* Create a space for a new line. */ |
/* Create a space for a new line. */ |
|
|
upper++; |
upper++; |
gl_upper = &gd->linedata[upper]; |
gl_upper = &gd->linedata[upper]; |
lower++; |
lower++; |
gl_lower = &gd->linedata[lower]; |
|
|
|
/* Move the line into the history. */ |
/* Move the line into the history. */ |
memcpy(gl_history, gl_upper, sizeof *gl_history); |
memcpy(gl_history, gl_upper, sizeof *gl_history); |