aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Tameling2018-03-28 21:27:58 +0200
committerHiltjo Posthuma2018-03-29 18:15:29 +0200
commitbd84ffc71dc554ce358106cdd9f080e5061e1684 (patch)
treefe12d8d8dd36199002edfc424fae8dcbc84a1a98
parentf7d314077d7165fc257369d46ed211a4e34d7e7b (diff)
downloadaur-bd84ffc71dc554ce358106cdd9f080e5061e1684.tar.gz
set sel.alt in selstart instead of selextend
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 46c954ba8bc7..2612c955872b 100644
--- 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();