set sel.alt in selstart instead of selextend
This commit is contained in:
parent
6f0f2b7ec3
commit
74cff67bd7
2
st.c
2
st.c
|
@ -446,6 +446,7 @@ selstart(int col, int row, int snap)
|
||||||
selclear();
|
selclear();
|
||||||
sel.mode = SEL_EMPTY;
|
sel.mode = SEL_EMPTY;
|
||||||
sel.type = SEL_REGULAR;
|
sel.type = SEL_REGULAR;
|
||||||
|
sel.alt = IS_SET(MODE_ALTSCREEN);
|
||||||
sel.snap = snap;
|
sel.snap = snap;
|
||||||
sel.oe.x = sel.ob.x = col;
|
sel.oe.x = sel.ob.x = col;
|
||||||
sel.oe.y = sel.ob.y = row;
|
sel.oe.y = sel.ob.y = row;
|
||||||
|
@ -474,7 +475,6 @@ selextend(int col, int row, int type, int done)
|
||||||
oldsey = sel.ne.y;
|
oldsey = sel.ne.y;
|
||||||
oldtype = sel.type;
|
oldtype = sel.type;
|
||||||
|
|
||||||
sel.alt = IS_SET(MODE_ALTSCREEN);
|
|
||||||
sel.oe.x = col;
|
sel.oe.x = col;
|
||||||
sel.oe.y = row;
|
sel.oe.y = row;
|
||||||
selnormalize();
|
selnormalize();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user