:TagbarTogglePause seems to have no effect. #177

mrenouf opened this Issue Oct 22, 2013 · 1 comment


None yet

2 participants

mrenouf commented Oct 22, 2013

Not entirely blaming code, but perhaps there is some other interaction that could cause this? After executing :TagbarTogglePause Tagbar continues to update whenever I switch windows or switch buffers within the same window to another supported source file.

@majutsushi majutsushi added a commit that closed this issue Nov 6, 2013
@majutsushi Rework pause functionality, closes #177
The current pause functionality simply removes all the autocommands to
stop updating Tagbar. This has the problem that at the moment the
statusline functions immediately restore the commands so pausing doesn't
work, but even if that didn't happen it would stop the statusline
functionality from working which is not desirable. The solution is to
have a reference to the paused file which will get used by the Tagbar
window, but not the statusline functions.
@majutsushi majutsushi closed this in 1a2c4ec Nov 6, 2013

This was a bit tricky. Am I right that you're using the statusline functionality? The problem was that the statusline functions essentially undid the changes that the pause function made so that the pause didn't actually take effect. Additionally even if that didn't happen the statusline would have paused as well which is not very desirable. I have now reworked the functionality so that the window is paused, but the statusline display still applies to the current file. Let me know if something doesn't work with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment