1 | /*--------------------------------*-C-*--------------------------------------* |
1 | /*--------------------------------*-C-*--------------------------------------* |
2 | * File: screen.c |
2 | * File: screen.c |
3 | *---------------------------------------------------------------------------* |
3 | *---------------------------------------------------------------------------* |
4 | * $Id: screen.C,v 1.12 2003/12/18 14:11:47 pcg Exp $ |
4 | * $Id: screen.C,v 1.13 2003/12/24 09:22:29 pcg Exp $ |
5 | * |
5 | * |
6 | * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com> |
6 | * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
289 | else if (nrow > prev_nrow) |
289 | else if (nrow > prev_nrow) |
290 | { |
290 | { |
291 | /* add rows */ |
291 | /* add rows */ |
292 | scr_reset_realloc (); /* realloc _first_ */ |
292 | scr_reset_realloc (); /* realloc _first_ */ |
293 | |
293 | |
294 | TermWin.ncol = prev_ncol; // save b/c scr_blank_screen_mem uses this |
294 | TermWin.ncol = prev_ncol; // save b/c scr_blank_screen_mem uses this |
295 | |
295 | |
296 | k = min (TermWin.nscrolled, nrow - prev_nrow); |
296 | k = min (TermWin.nscrolled, nrow - prev_nrow); |
297 | |
297 | |
298 | for (p = prev_total_rows; p < total_rows; p++) |
298 | for (p = prev_total_rows; p < total_rows; p++) |
299 | { |
299 | { |