st

simple terminal

git clone https://9o.is/git/st.git

commit 55a034a1420ab1a11d6558e0a3cf82c31afd24e5
parent 6fa252a6bcd7984dd97aed092bf06290f9bae88e
Author: Daniel Tameling <tamelingdaniel@gmail.com>
Date:   Wed, 28 Mar 2018 21:27:58 +0200

set sel.alt in selstart instead of selextend

Diffstat:
Mst.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -446,6 +446,7 @@ selstart(int col, int row, int snap) selclear(); sel.mode = SEL_EMPTY; sel.type = SEL_REGULAR; + sel.alt = IS_SET(MODE_ALTSCREEN); sel.snap = snap; sel.oe.x = sel.ob.x = col; sel.oe.y = sel.ob.y = row; @@ -474,7 +475,6 @@ selextend(int col, int row, int type, int done) oldsey = sel.ne.y; oldtype = sel.type; - sel.alt = IS_SET(MODE_ALTSCREEN); sel.oe.x = col; sel.oe.y = row; selnormalize();