mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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++) {
|
for (i=0; i<newrows; i++) {
|
||||||
line = smalloc(TSIZE * (newcols+1));
|
line = smalloc(TSIZE * (newcols+1));
|
||||||
for (j = 0; j <= newcols; j++)
|
for (j = 0; j <= newcols; j++)
|
||||||
line[i] = erase_char;
|
line[j] = erase_char;
|
||||||
addpos234(newalt, line, i);
|
addpos234(newalt, line, i);
|
||||||
}
|
}
|
||||||
if (alt_screen) {
|
if (alt_screen) {
|
||||||
@ -466,7 +466,7 @@ static void scroll (int topline, int botline, int lines, int sb) {
|
|||||||
unsigned long *line, *line2;
|
unsigned long *line, *line2;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (topline != 0)
|
if (topline != 0 || alt_which != 0)
|
||||||
sb = FALSE;
|
sb = FALSE;
|
||||||
|
|
||||||
if (lines < 0) {
|
if (lines < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user