On terminal resize, clear the alt screen with its own cursor.

Currently the alternate screen get messed up on resize if it has
different colors or mode.
This commit is contained in:
Colona authored and Roberto E. Vargas Caballero committed 2014-04-25 23:57:44 +02:00
1 parent 844c503c80
commit 8f11e1cd03
1 file changed
+2
+2
View File
@@ -2674,7 +2674,9 @@ tresize(int col, int row) {
if(0 < col && minrow < row) {
tclearregion(0, minrow, col - 1, row - 1);
}
tcursor(CURSOR_SAVE);
tswapscreen();
tcursor(CURSOR_LOAD);
} while(orig != term.line);
return (slide > 0);