From 78d1d7c181f716dca29fc200cf4511d3fd226f69 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 24 Mar 2020 13:52:56 +0100 Subject: [PATCH] selection: fix view to match actual selection on first cell (3c7ecf) --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index 74704cf..dfb56e0 100644 --- a/st.c +++ b/st.c @@ -488,7 +488,7 @@ selextend(int col, int row, int type, int done) selnormalize(); sel.type = type; - if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type) + if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type || sel.mode == SEL_EMPTY) tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); sel.mode = done ? SEL_IDLE : SEL_READY;