]> git.armaanb.net Git - st.git/blobdiff - st.c
Save cursor position in terminal reset
[st.git] / st.c
diff --git a/st.c b/st.c
index 9864442758f56063b5674d0d0425879a081c07e4..4a77d717c738a79228fe816bc56c05a68e181827 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1076,6 +1076,8 @@ treset(void) {
        term.mode = MODE_WRAP;
 
        tclearregion(0, 0, term.col-1, term.row-1);
+       tmoveto(0, 0);
+       tcursor(CURSOR_SAVE);
 }
 
 void