From 56ff8cd7c79eb1d683fa11d47f75b8314be4bce8 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 5 Apr 2020 18:09:50 +0200 Subject: [PATCH] [st][scrollback] Update for latest git --- st.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/st.c b/st.c index 894ece1..b24059d 100644 --- a/st.c +++ b/st.c @@ -1147,7 +1147,12 @@ tscrolldown(int orig, int n) term.line[i-n] = temp; } + #if SCROLLBACK_PATCH + if (term.scr == 0) + selscroll(orig, n); + #else selscroll(orig, n); + #endif // SCROLLBACK_PATCH } void @@ -1183,7 +1188,12 @@ tscrollup(int orig, int n) term.line[i+n] = temp; } + #if SCROLLBACK_PATCH + if (term.scr == 0) + selscroll(orig, -n); + #else selscroll(orig, -n); + #endif // SCROLLBACK_PATCH } void