pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0f2b7
)
set sel.alt in selstart instead of selextend
author
Daniel Tameling
<tamelingdaniel@gmail.com>
Wed, 28 Mar 2018 19:27:58 +0000
(21:27 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Thu, 29 Mar 2018 16:15:29 +0000
(18:15 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
46c954b
..
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;
+ 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();