aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-09 22:46:44 +0200
committerMateja <mail@matejamaric.com>2021-04-09 22:46:44 +0200
commitc2131a689c5b83d2f5015f5afdce5ab3bc58e734 (patch)
tree0254a67ee8978af7663be9eca0d3459a58adb8c8 /st.c
parent09f652d8aff93ba8b7e96d07a58c1aa520f44a2f (diff)
downloadst-c2131a689c5b83d2f5015f5afdce5ab3bc58e734.tar.gz
st-c2131a689c5b83d2f5015f5afdce5ab3bc58e734.zip
Applied third `scrollback` patch.
Allow scrollback using mouse wheel only when not in MODE_ALTSCREEN.
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/st.c b/st.c
index c5e3a4f..7f35b8a 100644
--- a/st.c
+++ b/st.c
@@ -1058,6 +1058,11 @@ tnew(int col, int row)
treset();
}
+int tisaltscr(void)
+{
+ return IS_SET(MODE_ALTSCREEN);
+}
+
void
tswapscreen(void)
{