mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Fix alternate-screen bugs introduced by move to B-trees. Alternate
screen wasn't being correctly cleared on creation, and also wasn't inhibiting scrollback like it should have. [originally from svn r1061]
This commit is contained in:
parent
3abea3d4ea
commit
04b2c2b53e
@ -369,7 +369,7 @@ void term_size(int newrows, int newcols, int newsavelines) {
|
||||
for (i=0; i<newrows; i++) {
|
||||
line = smalloc(TSIZE * (newcols+1));
|
||||
for (j = 0; j <= newcols; j++)
|
||||
line[i] = erase_char;
|
||||
line[j] = erase_char;
|
||||
addpos234(newalt, line, i);
|
||||
}
|
||||
if (alt_screen) {
|
||||
@ -466,7 +466,7 @@ static void scroll (int topline, int botline, int lines, int sb) {
|
||||
unsigned long *line, *line2;
|
||||
int i;
|
||||
|
||||
if (topline != 0)
|
||||
if (topline != 0 || alt_which != 0)
|
||||
sb = FALSE;
|
||||
|
||||
if (lines < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user