Escape the ponyc executable

This commit is contained in:
w0rp 2018-02-18 10:06:40 +00:00
parent 608b6dafd4
commit 5915a0ee39
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ function! ale_linters#pony#ponyc#GetExecutable(buffer) abort
endfunction
function! ale_linters#pony#ponyc#GetCommand(buffer) abort
return ale_linters#pony#ponyc#GetExecutable(a:buffer)
return ale#Escape(ale_linters#pony#ponyc#GetExecutable(a:buffer))
\ . ' ' . ale#Var(a:buffer, 'pony_ponyc_options')
endfunction

View File

@ -13,11 +13,11 @@ After:
Execute(The options should be used in the command):
AssertEqual
\ 'ponyc --pass paint',
\ ale#Escape('ponyc') . ' --pass paint',
\ ale_linters#pony#ponyc#GetCommand(bufnr(''))
let b:ale_pony_ponyc_options = 'foobar'
AssertEqual
\ 'ponyc foobar',
\ ale#Escape('ponyc') . ' foobar',
\ ale_linters#pony#ponyc#GetCommand(bufnr(''))