From 66b9d025bb87ed941aeff4ce0c72b4ef9f98d431 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 19 Jun 2017 11:39:42 +0100 Subject: [PATCH] #662 Fix kotlinc configuration name escaping --- ale_linters/kotlin/kotlinc.vim | 6 ++++-- 1 file 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