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

Trigger FileType autocmds in any case #81

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Conversation

alker0
Copy link
Owner

@alker0 alker0 commented Jul 26, 2024

Related: #79
This PR should fix it by manually triggering autocmds for FileType events that were temporarily ignored.

Previously, enabling the `g:chezmoi#use_tmp_buf` option prevented autocmds
triggered by `FileType` events from running when editing a non-template
chezmoi source file. This occurred because `FileType` events were
temporarily ignored during filetype detection in temporary buffers to
avoid side effects from autocmds. To address this, trigger autocmds for
`FileType` events manually if they have been ignored.
@alker0 alker0 added the bug Something isn't working label Jul 26, 2024
@alker0 alker0 merged commit abf3733 into main Jul 26, 2024
@alker0 alker0 deleted the filetype_autocmd_any_case branch July 26, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant