mirror of https://github.com/dense-analysis/ale
#662 Fix kotlinc configuration name escaping
This commit is contained in:
parent
11e17669d3
commit
66b9d025bb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue