diff options
author | w0rp <devw0rp@gmail.com> | 2018-02-18 10:06:40 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-02-18 10:06:40 +0000 |
commit | 5915a0ee39ba04a5a4118d5f71766912a6b87fe9 (patch) | |
tree | 09bd86218075d8de107f591ae432acae17d29b1a | |
parent | 608b6dafd4cf6399f87670a9edf291b1261763d0 (diff) | |
download | ale-5915a0ee39ba04a5a4118d5f71766912a6b87fe9.zip |
Escape the ponyc executable
-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('')) |