#662 Fix kotlinc configuration name escaping

This commit is contained in:
w0rp 2017-06-19 11:39:42 +01:00
parent 11e17669d3
commit 66b9d025bb
1 changed files with 4 additions and 2 deletions

View File

@ -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