old-st

[ARCHIVED] my build of st
git clone git://git.ckyln.com/~cem/old-st.git
Log | Files | Refs | README | LICENSE

commit d563e895f390ec268c3bbe9e216a04722444ec8d
parent 6d38ca41f98d5229f09aa7158ab9c7887554d08b
Author: Avi Halachmi (:avih) <avihpit@yahoo.com>
Date:   Wed, 10 Apr 2019 01:54:43 +0300

selection: fix view to match actual selection on first cell

Diffstat:
Mst.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -465,7 +465,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;