aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-03 08:08:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-03 08:08:22 -0700
commite5b03d646ab412de3d5cd166815ffd39ad162753 (patch)
tree0a864266f7f45f9f4d63fb34c4ebc1dfc6bfcee8 /pw.c
parent71b6841e3fcf7df12a89e9675c5137934d28c713 (diff)
downloadpw-e5b03d646ab412de3d5cd166815ffd39ad162753.tar.gz
pw-e5b03d646ab412de3d5cd166815ffd39ad162753.tar.bz2
pw-e5b03d646ab412de3d5cd166815ffd39ad162753.zip
Keep taking snapshots in background.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c6
1 files 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) {