commit 33dd917d7fdc40483b3d18d0c7bcf5994b26fe86
parent 94718e479da786cf75f9805470a6a108e8097dab
Author: Jonas Strittmatter <40792180+smjonas@users.noreply.github.com>
Date: Thu, 29 Sep 2022 16:26:19 +0200
fix(filetype): add missing return to changelog detection function (#20403)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1734,7 +1734,7 @@ local pattern = {
{ priority = -1 },
},
['[cC]hange[lL]og.*'] = starsetf(function(path, bufnr)
- require('vim.filetype.detect').changelog(bufnr)
+ return require('vim.filetype.detect').changelog(bufnr)
end),
['.*%.%.ch'] = 'chill',
['.*%.cmake%.in'] = 'cmake',