Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
st -v: remove years and copyright text
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
581647b
..
2612c95
100644
(file)
--- 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;
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;
sel.snap = snap;
sel.oe.x = sel.ob.x = col;
sel.oe.y = sel.ob.y = row;
@@
-461,7
+462,7
@@
selextend(int col, int row, int type, int done)
{
int oldey, oldex, oldsby, oldsey, oldtype;
{
int oldey, oldex, oldsby, oldsey, oldtype;
- if (
!sel.mode
)
+ if (
sel.mode == SEL_IDLE
)
return;
if (done && sel.mode == SEL_EMPTY) {
selclear();
return;
if (done && sel.mode == SEL_EMPTY) {
selclear();
@@
-474,7
+475,6
@@
selextend(int col, int row, int type, int done)
oldsey = sel.ne.y;
oldtype = sel.type;
oldsey = sel.ne.y;
oldtype = sel.type;
- sel.alt = IS_SET(MODE_ALTSCREEN);
sel.oe.x = col;
sel.oe.y = row;
selnormalize();
sel.oe.x = col;
sel.oe.y = row;
selnormalize();