Escape the ponyc executable
This commit is contained in:
parent
608b6dafd4
commit
5915a0ee39
@ -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
|
||||
|
||||
|
@ -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(''))
|
||||
|
Loading…
Reference in New Issue
Block a user