mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
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
b9b762c21f
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user