diff options
author | Alex Musolino <alex@musolino.id.au> | 2021-06-05 01:21:55 +0930 |
---|---|---|
committer | Alex Musolino <alex@musolino.id.au> | 2021-06-05 01:21:55 +0930 |
commit | 3568348260054100d4ec66dd3d4d7dbb55bd9dd5 (patch) | |
tree | 52511ee7298ef3fb970cb58c6f1617f06a2bf3b8 | |
parent | c036d803a1e94fd3a266bd37a786394dab3b8f90 (diff) | |
download | plan9front-3568348260054100d4ec66dd3d4d7dbb55bd9dd5.tar.xz |
upas/Mail: fix bug where Redraw must be executed twice to have an effect
In showlist, call bwindata instead of bwinopen in order to use a
pre-existing fd to write to the data file. This existing fd will
properly honour any address set by a previous write to the addr file.
Specifically, the redraw function sets addr to "," before calling
showlist in order to overwrite the entire contents of the window.
-rw-r--r-- | sys/src/cmd/upas/Mail/mbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/upas/Mail/mbox.c b/sys/src/cmd/upas/Mail/mbox.c index 97742e379..ccb8d3e39 100644 --- a/sys/src/cmd/upas/Mail/mbox.c +++ b/sys/src/cmd/upas/Mail/mbox.c @@ -746,7 +746,7 @@ showlist(void) Mesg *m; int i; - bfd = bwinopen(&mbox, "data", OWRITE); + bfd = bwindata(&mbox, OWRITE); for(i = 0; i < mbox.nmesg; i++){ m = mbox.mesg[i]; if(mbox.view == Vflat || m->state & (Sdummy|Stoplev)) |