mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(filetype): don't pass empty string to detect (#20766)
Problem: `*.db` files use empty string as default filetype, which is inconsistent with the rest of the code which uses `nil` instead. Solution: don't pass a default empty string
This commit is contained in:
parent
24c9561a68
commit
e554f5c545
@ -170,7 +170,7 @@ local extension = {
|
||||
return require('vim.filetype.detect').bindzone(bufnr, 'dcl')
|
||||
end,
|
||||
db = function(path, bufnr)
|
||||
return require('vim.filetype.detect').bindzone(bufnr, '')
|
||||
return require('vim.filetype.detect').bindzone(bufnr)
|
||||
end,
|
||||
bicep = 'bicep',
|
||||
bb = 'bitbake',
|
||||
|
Loading…
Reference in New Issue
Block a user