tset selection to IDLE on clear - st - [fork] customized build of st, the simpl… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8e15887de95a7076b9515dcbb428b364f6dc3849 | |
parent 89cf0fc597a2bcc16b1516c6f6d750a06175f1c7 | |
Author: v4hn <[email protected]> | |
Date: Thu, 14 May 2015 15:46:07 +0200 | |
set selection to IDLE on clear | |
Otherwise a tangling bmotion event will consider | |
tthe selection still valid and selnormalize segfaults | |
because of an invalid sel.ob.y index. | |
Diffstat: | |
M st.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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); | |
} |