st

simple terminal

git clone https://9o.is/git/st.git

commit 1371614ea7e0b7065469e7a9322888d38cdbcde7
parent 7ef1d24a4c917568f57299d789f879380a359f65
Author: noname <noname@inventati.org>
Date:   Tue, 22 Apr 2014 21:59:01 +0400

Use BETWEEN in tinsertblankline and tdeleteline.

Diffstat:
Mst.c | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/st.c b/st.c @@ -1628,18 +1628,14 @@ tinsertblank(int n) { void tinsertblankline(int n) { - if(term.c.y < term.top || term.c.y > term.bot) - return; - - tscrolldown(term.c.y, n); + if(BETWEEN(term.c.y, term.top, term.bot)) + tscrolldown(term.c.y, n); } void tdeleteline(int n) { - if(term.c.y < term.top || term.c.y > term.bot) - return; - - tscrollup(term.c.y, n); + if(BETWEEN(term.c.y, term.top, term.bot)) + tscrollup(term.c.y, n); } int32_t