tIf the selection is cleared, draw() and do it on button press too. - st - [for… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11 | |
parent f471a32d29ad9e5e06cf5e5d5efc8422483f535e | |
Author: Christoph Lohmann <[email protected]> | |
Date: Wed, 5 Sep 2012 22:17:42 +0200 | |
If the selection is cleared, draw() and do it on button press too. | |
Diffstat: | |
M st.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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(); | |
} | |
} | |
t@@ -619,6 +620,7 @@ void selclear(XEvent *e) { | |
return; | |
sel.bx = -1; | |
tsetdirt(sel.b.y, sel.e.y); | |
+ draw(); | |
} | |
void |