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

The filetype of 'gitcommit' file will be changed to 'conf' after :w #656

Closed
linjiX opened this issue Dec 31, 2020 · 0 comments
Closed

The filetype of 'gitcommit' file will be changed to 'conf' after :w #656

linjiX opened this issue Dec 31, 2020 · 0 comments

Comments

@linjiX
Copy link

linjiX commented Dec 31, 2020

Does this bug happen when you install plugin without vim-polyglot?
No

Describe the bug:
This issue happens after 1150adc

The gitcommit file will be correctly detected as gitcommit, but the filetype will be changed to conf after writing file

To Reproduce:

  1. Execute git commit to open a gitcommit file in Vim
git commit
  1. Check the filetype
:set filetype?

The result should be filetype=gitcommit, which is correct.

  1. Write file
:w
  1. Check the filetype again
:set filetype?

The result changes to filetype=conf, which is incorrect.

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

1 participant