X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=df8353a378e942f7dc3de8177502690b7c01e03b;hb=cddbd6eee59104a029087c30f9ff5e7e415bc584;hp=b331eadebdeb2208ae77916cc2ece6a4291a07a4;hpb=3959a99293785e603270d8798fbe0cb2ba0ae0ee;p=st.git diff --git a/st.c b/st.c index b331ead..df8353a 100644 --- a/st.c +++ b/st.c @@ -615,7 +615,7 @@ bmotion(XEvent *e) { if(oldey != sel.ey || oldex != sel.ex) { int starty = MIN(oldey, sel.ey); int endy = MAX(oldey, sel.ey); - drawregion(0, (starty > 0 ? starty : 0), term.col, (sel.ey < term.row ? endy+1 : term.row)); + drawregion(0, (starty > 0 ? starty : 0), term.col, (endy < term.row ? endy+1 : term.row)); } } }