Fixed shebang detection for multiple buffers
This commit is contained in:
parent
f2b98a8426
commit
5f775a452c
@ -15,7 +15,7 @@ endif
|
||||
let loaded_sh_syntax_checker = 1
|
||||
|
||||
function! GetShell()
|
||||
let shebang = getbufline(bufname('.'), 1)[0]
|
||||
let shebang = getbufline(bufnr('%'), 1)[0]
|
||||
if len(shebang) > 0
|
||||
if match(shebang, 'bash') >= 0
|
||||
return 'bash'
|
||||
|
Loading…
x
Reference in New Issue
Block a user