st

simple terminal

git clone https://9o.is/git/st.git

commit 5f9147707cef26b52a1ee69403b0f28faa46d1e3
parent 2f3af1b9c2d4bee7d728715ad828606cc2998b5b
Author: v4hn <me@v4hn.de>
Date:   Thu, 14 May 2015 15:46:07 +0200

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.

Diffstat:
Mst.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/st.c b/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); }