projects
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f471a32
)
If the selection is cleared, draw() and do it on button press too.
author
Christoph Lohmann
<20h@r-36.net>
Wed, 5 Sep 2012 20:17:42 +0000
(22:17 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Wed, 5 Sep 2012 20:17:42 +0000
(22:17 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
bf3993a
..
a2f4f46
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-551,6
+551,7
@@
bpress(XEvent *e) {
sel.mode = 1;
sel.ex = sel.bx = X2COL(e->xbutton.x);
sel.ey = sel.by = Y2ROW(e->xbutton.y);
+ draw();
}
}
@@
-619,6
+620,7
@@
void selclear(XEvent *e) {
return;
sel.bx = -1;
tsetdirt(sel.b.y, sel.e.y);
+ draw();
}
void