diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-08 22:59:25 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-08 22:59:25 +0100 |
commit | 6ea00af6895e111320a2047f43f94792a46b6cea (patch) | |
tree | 8a941fa08834e5dd512f3136b3c9b836ebf1b3d4 /ale_linters/kotlin/kotlinc.vim | |
parent | 28c6ec9cad3064966ff70c9da95c96364118eb57 (diff) | |
download | ale-6ea00af6895e111320a2047f43f94792a46b6cea.zip |
#540 Fix shell escaping pretty much everywhere
Diffstat (limited to 'ale_linters/kotlin/kotlinc.vim')
-rw-r--r-- | ale_linters/kotlin/kotlinc.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/kotlin/kotlinc.vim b/ale_linters/kotlin/kotlinc.vim index 0ada361f..543c3a99 100644 --- a/ale_linters/kotlin/kotlinc.vim +++ b/ale_linters/kotlin/kotlinc.vim @@ -16,13 +16,13 @@ function! ale_linters#kotlin#kotlinc#GetCommand(buffer) abort " If the config file is enabled and readable, source it if ale#Var(a:buffer, 'kotlin_kotlinc_enable_config') if filereadable(expand(ale#Var(a:buffer, 'kotlin_kotlinc_config_file'), 1)) - execute 'source ' . fnameescape(expand(ale#Var(a:buffer, 'kotlin_kotlinc_config_file'), 1)) + execute 'source ' . shellescape(expand(ale#Var(a:buffer, 'kotlin_kotlinc_config_file'), 1)) endif endif " If use module and module file is readable use that and return if ale#Var(a:buffer, 'kotlin_kotlinc_use_module_file') - let l:module_filename = fnameescape(expand(ale#Var(a:buffer, 'kotlin_kotlinc_module_filename'), 1)) + let l:module_filename = shellescape(expand(ale#Var(a:buffer, 'kotlin_kotlinc_module_filename'), 1)) if filereadable(l:module_filename) let l:kotlinc_opts .= ' -module ' . l:module_filename |