mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 17:11:48 +00:00
Problem: if buf_free_all autocommands open a terminal, it will remain open after the buffer is freed. Solution: close terminals again later, this time while blocking autocommands. Did consider terminal_open checking stuff like b_locked_split instead, but that's set during BufHidden, etc., which doesn't mean the buffer's being wiped.