aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.c b/st.c
index ced72ff..70caf82 100644
--- a/st.c
+++ b/st.c
@@ -1855,7 +1855,10 @@ tsetmode(bool priv, bool set, int *args, int narg) {
1855 MODBIT(term.mode, set, MODE_8BIT); 1855 MODBIT(term.mode, set, MODE_8BIT);
1856 break; 1856 break;
1857 case 1049: /* swap screen & set/restore cursor as xterm */ 1857 case 1049: /* swap screen & set/restore cursor as xterm */
1858 if (!allowaltscreen)
1859 break;
1858 tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); 1860 tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD);
1861 /* FALLTHRU */
1859 case 47: /* swap screen */ 1862 case 47: /* swap screen */
1860 case 1047: 1863 case 1047:
1861 if (!allowaltscreen) 1864 if (!allowaltscreen)