diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-19 11:39:42 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-19 11:39:42 +0100 |
commit | 66b9d025bb87ed941aeff4ce0c72b4ef9f98d431 (patch) | |
tree | 884628a019885a66823c26d22f95b8beea993413 /ale_linters/kotlin/kotlinc.vim | |
parent | 11e17669d3836371a2b6c5878a2fce1b74db5fcf (diff) | |
download | ale-66b9d025bb87ed941aeff4ce0c72b4ef9f98d431.zip |
#662 Fix kotlinc configuration name escaping
Diffstat (limited to 'ale_linters/kotlin/kotlinc.vim')
-rw-r--r-- | ale_linters/kotlin/kotlinc.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ale_linters/kotlin/kotlinc.vim b/ale_linters/kotlin/kotlinc.vim index 96700bf1..8d66b371 100644 --- a/ale_linters/kotlin/kotlinc.vim +++ b/ale_linters/kotlin/kotlinc.vim @@ -46,8 +46,10 @@ function! ale_linters#kotlin#kotlinc#GetCommand(buffer, import_paths) 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 ' . ale#Escape(expand(ale#Var(a:buffer, 'kotlin_kotlinc_config_file'), 1)) + let l:conf = expand(ale#Var(a:buffer, 'kotlin_kotlinc_config_file'), 1) + + if filereadable(l:conf) + execute 'source ' . fnameescape(l:conf) endif endif |