change ale to use value of g:ale_shell regardless of what it is

This commit is contained in:
Holden
2019-01-02 19:05:51 -05:00
parent 8550fa6059
commit 5f613a5fd6
5 changed files with 36 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ Before:
augroup END
if !has('win32')
let g:ale_shell = '/bin/bash'
let &shell = '/bin/bash'
endif
call ale#test#SetDirectory('/testplugin/test')

View File

@@ -31,6 +31,6 @@ Execute(Command formatting should be applied correctly for LSP linters):
\ g:args
else
AssertEqual
\ ['true', [g:ale_shell, '-c', '''true'' --foo']],
\ ['true', [&shell, '-c', '''true'' --foo']],
\ g:args
endif

View File

@@ -4,7 +4,7 @@ Before:
After:
Restore
let g:ale_shell = &shell
let g:ale_shell = v:null
Execute(sh should be used when the shell is fish):
if !has('win32')