From f1bf7a5fda47480781c399c65d389950ea7de29f Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 21 Oct 2022 13:41:31 +0200 Subject: [PATCH] fix(filetype): don't pass empty string to detect 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 (cherry picked from commit 8bfde690074f396e8b00067b7f850472d08c8e10) --- runtime/lua/vim/filetype.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index b61fc528f5..b236554ef6 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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',