~petersanchez/st

dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11 — Christoph Lohmann 11 years ago f471a32
If the selection is cleared, draw() and do it on button press too.
1 files changed, 2 insertions(+), 0 deletions(-)

M st.c
M st.c => st.c +2 -0
@@ 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