Skip to content

Commit

Permalink
set sel.alt in selstart instead of selextend
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-tameling authored and hiltjo committed Mar 29, 2018
1 parent 6f0f2b7 commit 74cff67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 74cff67

Please sign in to comment.