[hackers] [st] selection: fix view to match actual selection on first cell || Avi Halachmi (:avih)

From: <git_AT_suckless.org>
Date: Sun, 14 Apr 2019 13:51:54 +0200 (CEST)

commit f1546cf9c1f9fc52d26dbbcf73210901e83c7ecf
Author: Avi Halachmi (:avih) <avihpit_AT_yahoo.com>
AuthorDate: Wed Apr 10 01:54:43 2019 +0300
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sun Apr 14 13:50:20 2019 +0200

    selection: fix view to match actual selection on first cell

diff --git a/st.c b/st.c
index 8e6ccb5..ede7ae6 100644
--- a/st.c
+++ b/st.c
_AT_@ -458,7 +458,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;
Received on Sun Apr 14 2019 - 13:51:54 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 14 2019 - 14:00:23 CEST