Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
On terminal resize, clear the alt screen with its own cursor.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
c9ef574
..
b37069c
100644
(file)
--- 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);