diff options
author | Luca Saccarola <96259932+saccarosium@users.noreply.github.com> | 2024-12-28 12:20:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-28 19:20:50 +0800 |
commit | 2b07b14eacf3197754c63f42f9c880e85960eef2 (patch) | |
tree | 5ba0b476cccbc257cc651dc5b23fced1d895f06b /runtime/lua/vim | |
parent | bc624ccffd20ccb36cbcb0165541bf38c28d724e (diff) | |
download | rneovim-2b07b14eacf3197754c63f42f9c880e85960eef2.tar.gz rneovim-2b07b14eacf3197754c63f42f9c880e85960eef2.tar.bz2 rneovim-2b07b14eacf3197754c63f42f9c880e85960eef2.zip |
vim-patch:9.1.0965: filetype: sh filetype set when detecting the use of bash (#31749)
Problem: filetype: sh filetype set when detecting the use of bash
Solution: when bash is detected, use 'bash' filetype instead
(Luca Saccarola)
closes: vim/vim#16309
https://github.com/vim/vim/commit/b9b762c21f2b61e0e7d8fee43d4d3dc8ecffd721
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index 4f2fef5b1f..0d9c1ebc2b 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -1494,6 +1494,7 @@ local function sh(path, contents, name) vim.b[b].is_kornshell = nil vim.b[b].is_sh = nil end + return M.shell(path, contents, 'bash'), on_detect -- Ubuntu links sh to dash elseif matchregex(name, [[\<\(sh\|dash\)\>]]) then on_detect = function(b) |