st
simple terminal
git clone https://9o.is/git/st.git
commit fd54a56d223800eefbf13c27c1c564bb0e059dc6 parent 8f6f8d4cffb5a9bf30bca738fa8e274e22a6f036 Author: Colona <colona@ycc.fr> Date: Tue, 3 Jun 2014 21:47:55 -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@shike2.com> Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -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 {