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:
parent
c036d803a1
commit
3568348260
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue