From a28f3e0d39a6c7f94ad8ae387b871d333aa2611b Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Mon, 11 Mar 2024 22:49:20 +0100 Subject: [PATCH] Adding back lines that were removed by mistake, fixes mouse double click to select --- st.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/st.c b/st.c index 30879f8..f01287c 100644 --- a/st.c +++ b/st.c @@ -454,6 +454,10 @@ selstart(int col, int row, int snap) sel.oe.x = sel.ob.x = col; sel.oe.y = sel.ob.y = row; selnormalize(); + + if (sel.snap != 0) + sel.mode = SEL_READY; + tsetdirt(sel.nb.y, sel.ne.y); } void