diff options
-rw-r--r-- | ale_linters/pony/ponyc.vim | 2 | ||||
-rw-r--r-- | test/command_callback/test_pony_ponyc_command_callbacks.vader | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/pony/ponyc.vim b/ale_linters/pony/ponyc.vim index 4120df51..b3329053 100644 --- a/ale_linters/pony/ponyc.vim +++ b/ale_linters/pony/ponyc.vim @@ -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 diff --git a/test/command_callback/test_pony_ponyc_command_callbacks.vader b/test/command_callback/test_pony_ponyc_command_callbacks.vader index e48346e8..7acbfa9d 100644 --- a/test/command_callback/test_pony_ponyc_command_callbacks.vader +++ b/test/command_callback/test_pony_ponyc_command_callbacks.vader @@ -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('')) |