summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorColona <colona@ycc.fr>2014-04-24 20:35:41 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-04-25 23:57:44 +0200
commit8f11e1cd034ff28ca47bb4955505db7fa8016ba8 (patch)
treed494cd85115065aa6880931838b0db9b3c0a04a9 /st.c
parent844c503c800e5e1db1e409f5db729431ee2e5c00 (diff)
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.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index c9ef574..b37069c 100644
--- a/st.c
+++ b/st.c
@@ -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);