summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2019-04-10 01:54:43 +0300
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-04-14 13:50:20 +0200
commitf1546cf9c1f9fc52d26dbbcf73210901e83c7ecf (patch)
treea86607991f00be33cc5722d5b27d8278819e318b
parent21367a040f056f6a207fafa066bd1cb2d9cae586 (diff)
selection: fix view to match actual selection on first cell
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 8e6ccb5..ede7ae6 100644
--- a/st.c
+++ b/st.c
@@ -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;