version 1.11, 2009/08/08 13:29:27 |
version 1.12, 2009/12/03 22:50:10 |
|
|
s->rlower = screen_size_y(s) - 1; |
s->rlower = screen_size_y(s) - 1; |
|
|
s->mode = MODE_CURSOR; |
s->mode = MODE_CURSOR; |
|
|
screen_reset_tabs(s); |
screen_reset_tabs(s); |
|
|
grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy); |
grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy); |
|
|
fatalx("zero size"); |
fatalx("zero size"); |
oldy = screen_size_y(s); |
oldy = screen_size_y(s); |
|
|
/* |
/* |
* When resizing: |
* When resizing: |
* |
* |
* If the height is decreasing, delete lines from the bottom until |
* If the height is decreasing, delete lines from the bottom until |
* hitting the cursor, then push lines from the top into the history. |
* hitting the cursor, then push lines from the top into the history. |
* |
* |
* When increasing, pull as many lines as possible from the history to |
* When increasing, pull as many lines as possible from the history to |
* the top, then fill the remaining with blanks at the bottom. |
* the top, then fill the remaining with blanks at the bottom. |
*/ |
*/ |
|
|
grid_view_delete_lines(gd, 0, available); |
grid_view_delete_lines(gd, 0, available); |
} |
} |
s->cy -= needed; |
s->cy -= needed; |
} |
} |
|
|
/* Resize line arrays. */ |
/* Resize line arrays. */ |
gd->linedata = xrealloc( |
gd->linedata = xrealloc( |