X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=12d66659128a19aff66edd9e004d5b89e4464b4d;hp=397f6a6294ca9c7c9f2062e4eb8638932dbbb197;hb=d81250e5f96e96dd430a3fc61b5b47ffc04f98d8;hpb=c5a9b799d44be9c0fa4264dc34d9dd61321be795 diff --git a/st.c b/st.c index 397f6a6..12d6665 100644 --- a/st.c +++ b/st.c @@ -561,8 +561,11 @@ bpress(XEvent *e) { if(IS_SET(MODE_MOUSE)) mousereport(e); else if(e->xbutton.button == Button1) { - if(sel.bx != -1) + if(sel.bx != -1) { + sel.bx = -1; tsetdirt(sel.b.y, sel.e.y); + draw(); + } sel.mode = 1; sel.ex = sel.bx = X2COL(e->xbutton.x); sel.ey = sel.by = Y2ROW(e->xbutton.y);