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

Clear qf buffer autocmds before adding new ones #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickspoons
Copy link
Contributor

Currently, each time the quickfix window is opened, an extra BufEnter and BufWinEnter autocmd is added. This can be demonstrated (after opening the quickfix/locationlist windows a few times) with this command, which should only output a single unique line for each buffer/event:

echo autocmd_get(#{group: 'qf', event: 'BufEnter'})->map({k,v->$'{v.event} {v.bufnr}: {v.cmd}'})->join("\n")

This change removes the buffer's existing autocmds before creating the new ones.

@nickspoons
Copy link
Contributor Author

This presumably only became an issue in vim 8.1.0877 due to this commit

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

Successfully merging this pull request may close these issues.

1 participant