mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-15 23:22:45 +08:00
![]() When a window that is displaying a normal file gets closed with a :quit, :bdelete or other command, Tagbar may end up as the only visible window left, which isn't very useful. Previously Tagbar would just quit in such a situation (unless there was more than one tab), but that is rather non-intuitive. The change in this commit introduces a mechanism that should hopefully handle such a case properly based on which command was executed, and do exactly what a user would expect: - In the ':quit' case, it will close the current tabpage including Tagbar unless it was the only tabpage, in which case it will quit Vim. - In the ':bdelete/:bwipeout' case, it will delete the Tagbar buffer and then reopen Tagbar once the buffer that Vim switched to is being displayed. |
||
---|---|---|
.. | ||
tagbar.vim |