aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2013-06-01 12:23:55 +0200
committerChristoph Lohmann2013-06-01 12:23:55 +0200
commit2f4426a7978be30941fe2b652ba9032d828d2840 (patch)
treeb337090e5a06f61c2f77c4f1f1764744bd035f69 /st.c
parentc713162521ac55e8781e231d2b05b5b1d399257e (diff)
downloadaur-2f4426a7978be30941fe2b652ba9032d828d2840.tar.gz
Fixing bad highlighting on first SNAP_WORD multiline select.
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/st.c b/st.c
index 2eb007b6fbd5..3fcf543a811d 100644
--- a/st.c
+++ b/st.c
@@ -780,7 +780,7 @@ getbuttoninfo(XEvent *e) {
sel.oe.x = x2col(e->xbutton.x);
sel.oe.y = y2row(e->xbutton.y);
- if (sel.ob.y < sel.oe.y
+ if(sel.ob.y < sel.oe.y
|| (sel.ob.y == sel.oe.y && sel.ob.x < sel.oe.x)) {
selsnap(sel.snap, &sel.ob.x, &sel.ob.y, -1);
selsnap(sel.snap, &sel.oe.x, &sel.oe.y, +1);
@@ -788,7 +788,6 @@ getbuttoninfo(XEvent *e) {
selsnap(sel.snap, &sel.oe.x, &sel.oe.y, -1);
selsnap(sel.snap, &sel.ob.x, &sel.ob.y, +1);
}
-
selsort();
sel.type = SEL_REGULAR;
@@ -1099,7 +1098,7 @@ brelease(XEvent *e) {
selcopy();
}
sel.mode = 0;
- term.dirty[sel.oe.y] = 1;
+ tsetdirt(sel.nb.y, sel.ne.y);
}
}