The WinLeave event:
Fires:
radio_button_unchecked
Before leaving a window.
Fires Before Event(s):
radio_button_uncheckedWinClosed
Notes:
radio_button_unchecked
If the next window is for a different buffer, Neovim executes the BufLeave auto-commands before the WinLeave auto-commands (but not for :new).