commit 8e15887de95a7076b9515dcbb428b364f6dc3849 from: v4hn via: Roberto E. Vargas Caballero date: Fri May 15 05:42:40 2015 UTC set selection to IDLE on clear Otherwise a tangling bmotion event will consider the selection still valid and selnormalize segfaults because of an invalid sel.ob.y index. commit - 89cf0fc597a2bcc16b1516c6f6d750a06175f1c7 commit + 8e15887de95a7076b9515dcbb428b364f6dc3849 blob - 73fe291bdf8355812ac3f625b0d951247cc6195f blob + c0a9bf3361f877c2939c4f7d922a04c828ebd23d --- st.c +++ st.c @@ -1069,6 +1069,7 @@ void selclear(XEvent *e) { if(sel.ob.x == -1) return; + sel.mode = SEL_IDLE; sel.ob.x = -1; tsetdirt(sel.nb.y, sel.ne.y); }