When exiting neovim with only one window open (besides trouble), there's no parent window to set active. This verifies that the parent window is valid before setting it active.
With this in place, neovim exits cleanly when trouble is the last window open. If there is another window, that window becomes active and neovim does not exit.
When exiting neovim with only one window open (besides trouble), there's no parent window to set active. This verifies that the parent window is valid before setting it active.
With this in place, neovim exits cleanly when trouble is the last window open. If there is another window, that window becomes active and neovim does not exit.
Fixes #284