mirror of
https://github.com/neovim/neovim.git
synced 2026-04-26 01:04:10 +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:
@@ -119,7 +119,7 @@ describe('vim.filetype', function()
|
||||
|
||||
it('works with contents #22180', function()
|
||||
eq(
|
||||
'sh',
|
||||
'bash',
|
||||
exec_lua(function()
|
||||
-- Needs to be set so detect#sh doesn't fail
|
||||
vim.g.ft_ignore_pat = '\\.\\(Z\\|gz\\|bz2\\|zip\\|tgz\\)$'
|
||||
|
||||
Reference in New Issue
Block a user