aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-01 00:58:16 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-01 00:58:16 -0700
commit428eb782eb401736d26adaa28c26bc1d6f78437e (patch)
tree0ebced3be9c03732156939a7c85d9ccf7d65678d
parentf46115c8fbef8b68bdb426cf7d25ba84b864cdbe (diff)
downloadpw-428eb782eb401736d26adaa28c26bc1d6f78437e.tar.gz
pw-428eb782eb401736d26adaa28c26bc1d6f78437e.tar.bz2
pw-428eb782eb401736d26adaa28c26bc1d6f78437e.zip
Don't copy to snapshot when dirty flag is absent.
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index 81494de..25f6354 100644
--- a/pw.c
+++ b/pw.c
@@ -328,7 +328,7 @@ static void drawstatus(int columns, unsigned stat, char *cmd)
static unsigned redraw(char **circbuf, int nlines, int hpos,
int columns, unsigned stat, char *cmd)
{
- if ((stat & stat_susp) == 0 &&
+ if ((stat & (stat_dirty | stat_susp)) == stat_dirty &&
(stat & (stat_htmode | stat_trgrd)) != stat_htmode &&
(stat & (stat_ttmode | stat_trgrd)) != stat_ttmode)
{