[hackers] [st] Fix rectangular selection. || Colona
commit 6fd887077e29efd789499e06193314d7abdcac38
Author: Colona <colona_AT_ycc.fr>
Date: Tue Jun 3 21:47:55 2014 -0700
Fix rectangular selection.
selsort computes the wrong normalized coordinates when rectangular
selection is enabled, causing rectangular selection to only work
when going toward either the top left corner, or the bottom right
one.
Signed-off-by: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
diff --git a/st.c b/st.c
index 2e55963..8b65450 100644
--- a/st.c
+++ b/st.c
_AT_@ -670,7 +670,7 @@ static void
selnormalize(void) {
int i;
- if(sel.ob.y == sel.oe.y) {
+ if(sel.ob.y == sel.oe.y || sel.type == SEL_RECTANGULAR) {
sel.nb.x = MIN(sel.ob.x, sel.oe.x);
sel.ne.x = MAX(sel.ob.x, sel.oe.x);
} else {
Received on Wed Jun 04 2014 - 21:13:04 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 04 2014 - 21:24:12 CEST