all repos — st @ dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11

st (suckless terminal) config

If the selection is cleared, draw() and do it on button press too.
Christoph Lohmann 20h@r-36.net
commit

dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11

parent

f471a32d29ad9e5e06cf5e5d5efc8422483f535e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M st.cst.c

@@ -551,6 +551,7 @@ tsetdirt(sel.b.y, sel.e.y);

sel.mode = 1; sel.ex = sel.bx = X2COL(e->xbutton.x); sel.ey = sel.by = Y2ROW(e->xbutton.y); + draw(); } }

@@ -619,6 +620,7 @@ if(sel.bx == -1)

return; sel.bx = -1; tsetdirt(sel.b.y, sel.e.y); + draw(); } void