If the selection is cleared, draw() and do it on button press too.
This commit is contained in:
parent
f471a32d29
commit
dd0b7a077f
1 changed files with 2 additions and 0 deletions
2
st.c
2
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
|
||||
|
|
Loading…
Reference in a new issue