selection: fix view to match actual selection on first cell (3c7ecf)

This commit is contained in:
bakkeby 2020-03-24 13:52:56 +01:00
parent 87c1d1e598
commit 78d1d7c181

2
st.c
View File

@ -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;