aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorsmjonas <jonas.strittmatter@gmx.de>2023-06-21 07:12:53 +0200
committersmjonas <jonas.strittmatter@gmx.de>2023-06-23 18:18:33 +0200
commitfdf5013e218c55ca8f9bdb7cf5f16f8596330ea2 (patch)
treebe15e9cf139057fec6a29c968525f2715129491f /runtime/lua
parent771dad7a057548356a33c499e907bdd6203ec7bb (diff)
downloadrneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.tar.gz
rneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.tar.bz2
rneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.zip
fix(filetype): correctly detect bash-fc-{id} files as "sh"
Diffstat (limited to 'runtime/lua')
-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 fc8871f593..91d5dc1c62 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -2188,7 +2188,7 @@ local pattern = {
['.*/etc/profile'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
end,
- ['bash%-fc[%-%.]'] = function(path, bufnr)
+ ['bash%-fc[%-%.].*'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
end,
['%.tcshrc.*'] = function(path, bufnr)