JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Style fix in tdumpsel.
[st.git] / st.c
diff --git a/st.c b/st.c
index 019f53c..6da4827 100644 (file)
--- 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
@@ -2260,8 +2256,7 @@ printsel(const Arg *arg) {
 }
 
 void
-tdumpsel(void)
-{
+tdumpsel(void) {
        char *ptr;
 
        if((ptr = getsel())) {