Commit Diff


commit - 6f0f2b7ec3713351de274707672fbadb6cc727a2
commit + 74cff67bd7746c2636ea7bc78a0b8af2f8c44838
blob - 46c954ba8bc7276168cfd0129b8e6526b1591715
blob + 2612c955872b516a0ad76e2097b7f09d9a47bc78
--- st.c
+++ 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();