From e5b03d646ab412de3d5cd166815ffd39ad162753 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 3 May 2022 08:08:22 -0700 Subject: Keep taking snapshots in background. --- pw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pw.c b/pw.c index a288d9f..6d53c5d 100644 --- a/pw.c +++ b/pw.c @@ -419,9 +419,6 @@ static unsigned redraw(char **circbuf, int nlines, unsigned hpos, unsigned hist, { int updln = 0; - if ((stat & stat_bkgnd)) - return stat; - if ((stat & (stat_dirty | stat_susp)) == stat_dirty && (stat & (stat_htmode | stat_trgrd)) != stat_htmode && (stat & (stat_ttmode | stat_trgrd)) != stat_ttmode) @@ -444,6 +441,9 @@ static unsigned redraw(char **circbuf, int nlines, unsigned hpos, unsigned hist, updln = 1; } + if ((stat & stat_bkgnd)) + return stat; + if (updln) { printf("\r\033[%dA", snaplines[hist]); if ((stat & stat_lino) == 0) { -- cgit v1.2.3