]> git.lizzy.rs Git - plan9front.git/commit
upas/Mail: fix bug where Redraw must be executed twice to have an effect
authorAlex Musolino <alex@musolino.id.au>
Fri, 4 Jun 2021 15:51:55 +0000 (01:21 +0930)
committerAlex Musolino <alex@musolino.id.au>
Fri, 4 Jun 2021 15:51:55 +0000 (01:21 +0930)
commit3568348260054100d4ec66dd3d4d7dbb55bd9dd5
tree52511ee7298ef3fb970cb58c6f1617f06a2bf3b8
parentc036d803a1e94fd3a266bd37a786394dab3b8f90
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.
sys/src/cmd/upas/Mail/mbox.c