commit f37127fa35c901c9929f1dd2c093c5cf45f2cbdd
parent b2a30a896b87941a8483d111929d400cd81db522
Author: hhvn <dev@haydenvh.com>
Date: Tue, 2 Mar 2021 14:00:23 +0000
Merge branch 'master' of 192.168.1.20:/home/void/projects/st
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c
@@ -1078,10 +1078,10 @@ kscrolldown(const Arg* a)
int n = a->i;
if (n < 0)
- n = term.row + n;
+ n = (term.row / 2) + n;
if (n > term.scr)
- n = term.scr;
+ n = (term.scr / 2);
if (term.scr > 0) {
term.scr -= n;
@@ -1116,7 +1116,7 @@ kscrollup(const Arg* a)
int n = a->i;
if (n < 0)
- n = term.row + n;
+ n = (term.row / 2) + n;
if (term.scr <= HISTSIZE-n) {
term.scr += n;