Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:TagbarTogglePause seems to have no effect. #177

Closed
mrenouf opened this issue Oct 22, 2013 · 1 comment
Closed

:TagbarTogglePause seems to have no effect. #177

mrenouf opened this issue Oct 22, 2013 · 1 comment

Comments

@mrenouf
Copy link

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
Copy link
Collaborator

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.

dev-hann added a commit to dev-hann/tagbar that referenced this issue Sep 18, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants