[PATCH] Fix rectangular selection.

From: Colona <colona_AT_ycc.fr>
Date: Tue, 3 Jun 2014 21:47:55 -0700

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.
---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index ce06ed3..e0c64e3 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 {
-- 
2.0.0
--HcAYCG3uE/tztfnV--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 04 2014 - 09:12:03 CEST