summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ale_linters/kotlin/kotlinc.vim6
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