circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 74ca4595147e92f8333ce5869410265210c3a129
parent 3602c4a72178aa37b949535a738a7157249e5282
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 31 Jul 2017 19:57:43 +0200

Move draw() out of resize().

Diffstat:
Mcirco.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/circo.c b/circo.c @@ -906,8 +906,6 @@ resize(int x, int y) { if(sel->line && sel->lnoff) sel->lnoff = bufinfo(sel->data, sel->len, sel->line, LineToOffset); sel->nlines = bufinfo(sel->data, sel->len, 0, TotalLines); - printf(CLEAR); - draw(); } } @@ -962,7 +960,8 @@ sigwinch(int unused) { ioctl(0, TIOCGWINSZ, &ws); resize(ws.ws_row, ws.ws_col); - sel->need_redraw = 1; + printf(CLEAR); + draw(); } char *