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.
This commit is contained in:
Alex Musolino 2021-06-05 01:21:55 +09:30
parent c036d803a1
commit 3568348260

View file

@ -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))