fix(filetype): make filetype detection work with :doautocmd (#31470)

(cherry picked from commit 1077843b9b)
This commit is contained in:
zeertzjq
2024-12-06 20:57:21 +08:00
committed by github-actions[bot]
parent 8fbe3e3941
commit 7abc58349e
2 changed files with 3 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ describe('filetype.lua', function()
eq('gitconfig', api.nvim_get_option_value('filetype', {}))
end)
pending('works with :doautocmd BufRead #31306', function()
it('works with :doautocmd BufRead #31306', function()
clear({ args = { '--clean' } })
eq('', api.nvim_get_option_value('filetype', {}))
command('doautocmd BufRead README.md')