diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-03 08:08:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-03 08:08:22 -0700 |
commit | e5b03d646ab412de3d5cd166815ffd39ad162753 (patch) | |
tree | 0a864266f7f45f9f4d63fb34c4ebc1dfc6bfcee8 /pw.c | |
parent | 71b6841e3fcf7df12a89e9675c5137934d28c713 (diff) | |
download | pw-e5b03d646ab412de3d5cd166815ffd39ad162753.tar.gz pw-e5b03d646ab412de3d5cd166815ffd39ad162753.tar.bz2 pw-e5b03d646ab412de3d5cd166815ffd39ad162753.zip |
Keep taking snapshots in background.
Diffstat (limited to 'pw.c')
-rw-r--r-- | pw.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |