aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/st.c b/st.c
index 019f53c..92fd7da 100644
--- a/st.c
+++ b/st.c
@@ -1628,18 +1628,14 @@ tinsertblank(int n) {
1628 1628
1629void 1629void
1630tinsertblankline(int n) { 1630tinsertblankline(int n) {
1631 if(term.c.y < term.top || term.c.y > term.bot) 1631 if(BETWEEN(term.c.y, term.top, term.bot))
1632 return; 1632 tscrolldown(term.c.y, n);
1633
1634 tscrolldown(term.c.y, n);
1635} 1633}
1636 1634
1637void 1635void
1638tdeleteline(int n) { 1636tdeleteline(int n) {
1639 if(term.c.y < term.top || term.c.y > term.bot) 1637 if(BETWEEN(term.c.y, term.top, term.bot))
1640 return; 1638 tscrollup(term.c.y, n);
1641
1642 tscrollup(term.c.y, n);
1643} 1639}
1644 1640
1645int32_t 1641int32_t