From c2131a689c5b83d2f5015f5afdce5ab3bc58e734 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 9 Apr 2021 22:46:44 +0200 Subject: Applied third `scrollback` patch. Allow scrollback using mouse wheel only when not in MODE_ALTSCREEN. --- st.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'st.c') 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) { -- cgit v1.2.3