diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-01 00:58:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-01 00:58:16 -0700 |
commit | 428eb782eb401736d26adaa28c26bc1d6f78437e (patch) | |
tree | 0ebced3be9c03732156939a7c85d9ccf7d65678d | |
parent | f46115c8fbef8b68bdb426cf7d25ba84b864cdbe (diff) | |
download | pw-428eb782eb401736d26adaa28c26bc1d6f78437e.tar.gz pw-428eb782eb401736d26adaa28c26bc1d6f78437e.tar.bz2 pw-428eb782eb401736d26adaa28c26bc1d6f78437e.zip |
Don't copy to snapshot when dirty flag is absent.
-rw-r--r-- | pw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |