Introduction
Introduction Statistics Contact Development Disclaimer Help
tFixing bad highlighting on first SNAP_WORD multiline select. - st - [fork] cus…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 8315dc417982936186837edfac24420d0d0e516e
parent b5144100a59956b5bf69614a077bd4d252d7dc6c
Author: Christoph Lohmann <[email protected]>
Date: Sat, 1 Jun 2013 12:23:55 +0200
Fixing bad highlighting on first SNAP_WORD multiline select.
Diffstat:
M st.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -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);
t@@ -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;
t@@ -1099,7 +1098,7 @@ brelease(XEvent *e) {
selcopy();
}
sel.mode = 0;
- term.dirty[sel.oe.y] = 1;
+ tsetdirt(sel.nb.y, sel.ne.y);
}
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.