pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21367a0
)
selection: fix view to match actual selection on first cell
author
Avi Halachmi (:avih)
<avihpit@yahoo.com>
Tue, 9 Apr 2019 22:54:43 +0000
(
01:54
+0300)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 14 Apr 2019 11:50:20 +0000
(13:50 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8e6ccb5
..
ede7ae6
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-458,7
+458,7
@@
selextend(int col, int row, int type, int done)
selnormalize();
sel.type = type;
- if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type)
+ if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type
|| sel.mode == SEL_EMPTY
)
tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey));
sel.mode = done ? SEL_IDLE : SEL_READY;