mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00: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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user