Currently the alternate screen get messed up on resize if it has
different colors or mode.

---
 st.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/st.c b/st.c
index 60243a7..c1f983f 100644
--- a/st.c
+++ b/st.c
@@ -2680,7 +2680,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);
-- 
1.9.2


-- 
Ivan "Colona" Delalande

Reply via email to