Instead of calculating whether the nvim instance is headless at startup and caching that (both in the config.non_interactive flag as well as a local var in the display module), just recalculate whether nvim is interactive whenever it needs to make the decision (when displaying windows or prompting the user).
Fixes #1112
Instead of calculating whether the nvim instance is headless at startup and caching that (both in the config.non_interactive flag as well as a local var in the display module), just recalculate whether nvim is interactive whenever it needs to make the decision (when displaying windows or prompting the user).