mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-22 20:11:42 +08:00
225e6530c2
Fixes #750 Once the tagbar window is opened and a file is registered, that file stays in memory even if the tagbar window is closed. This allows tagbar to cache the info so if the tagbar window is opened again, it doesn't have to rescan the file and rerun ctags on the file. However if this buffer is wiped out using `:bwipe <file>`, then the buffer is completely unloaded from vim memory and also needs to be unloaded from tagbar memory. This works if the tagbar window is open, but in the event the tagbar window is closed, all autocmds are unregistered, so tagbar never gets the BufWipeout notification. This results in tagbar leaving the buffer in active memory even though the buffer doesn't exist anymore. This fix will leave the BufWipeout and BufDelete autocmds active even if the tagbar window is closed. This allows the buffer cleanup to occur on a `:bwipe` command even if the tagbar window is closed. |
||
---|---|---|
.. | ||
tagbar | ||
tagbar.vim |