aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorJonas Strittmatter <40792180+smjonas@users.noreply.github.com>2022-09-29 16:26:19 +0200
committerGitHub <noreply@github.com>2022-09-29 16:26:19 +0200
commit33dd917d7fdc40483b3d18d0c7bcf5994b26fe86 (patch)
treedf81739ab5d07e1df6ef2d7d4a8ee2f88ca80b9e /runtime/lua/vim
parent94718e479da786cf75f9805470a6a108e8097dab (diff)
downloadrneovim-33dd917d7fdc40483b3d18d0c7bcf5994b26fe86.tar.gz
rneovim-33dd917d7fdc40483b3d18d0c7bcf5994b26fe86.tar.bz2
rneovim-33dd917d7fdc40483b3d18d0c7bcf5994b26fe86.zip
fix(filetype): add missing return to changelog detection function (#20403)
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index d584d2659d..b61fc528f5 100644
--- 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',