Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Fix rectangular selection.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
2e55963
..
8b65450
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-670,7
+670,7
@@
static void
selnormalize(void) {
int i;
- if(sel.ob.y == sel.oe.y) {
+ if(sel.ob.y == sel.oe.y
|| sel.type == SEL_RECTANGULAR
) {
sel.nb.x = MIN(sel.ob.x, sel.oe.x);
sel.ne.x = MAX(sel.ob.x, sel.oe.x);
} else {