From 428eb782eb401736d26adaa28c26bc1d6f78437e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 1 May 2022 00:58:16 -0700 Subject: Don't copy to snapshot when dirty flag is absent. --- pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw.c') 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) { -- cgit v1.2.3