aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christoph Lohmann <20h@r-36.net>2012-09-05 22:17:42 +0200
committerGravatar Christoph Lohmann <20h@r-36.net>2012-09-05 22:17:42 +0200
commitdd0b7a077f5184c0eac99955aeb91f3c6a0d9c11 (patch)
tree67c0ea21e0513e6c2410456ebf4589efc99bb6fa
parentf471a32d29ad9e5e06cf5e5d5efc8422483f535e (diff)
If the selection is cleared, draw() and do it on button press too.
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index bf3993a..a2f4f46 100644
--- 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