On Fri, Nov 08, 2019 at 08:13:07AM -0800, Kevin J. McCarthy wrote:
On Fri, Nov 08, 2019 at 10:38:26AM +0100, Oswald Buddenhagen wrote:
anyway, i now have a hypothesis that is consistent with all
observations so far: the trigger is an early resize event
Do you mean a resize that you perform, or are you referring to the
asynchronous update that konsole performs?
the latter. i fail to parse my mail differently ...
I've pushed a commit up to the branch 'kevin/sigwinch-fixes'. Would
you mind giving that a try and seeing if it resolves the issue?
no luck. and i'm additionally getting a blank screen when invoking the
mailbox browser, until i ctrl-l (that was broken before, too, just
differently). as before, things normalize once i resize the window.
Mutt installs its signal handlers twice - once before initscr(), and
once after. The second installation was originally only for slang,
but was changed to always run 18 years ago.
that unification was probably wrong - slang installs an own handler,
while ncurses won't overwrite an already installed one (if it's built to
even install an own handler at all, but that's the default). midnight
commander chains sigwinch for slang, but not ncurses.
but that double init cries HACK!! in the first place, and i wouldn't be
surprised if that was the source of the race.