From fa3a4b3ba2903e735fd3bbd761bec9ee3ea45e2b Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 15 May 2017 20:21:18 +0100 Subject: Complain when shellescape is used instead of ale#Escape --- autoload/ale.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'autoload') diff --git a/autoload/ale.vim b/autoload/ale.vim index 189f1e46..ca75577a 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -125,12 +125,13 @@ function! ale#Var(buffer, variable_name) abort endfunction " Escape a string suitably for each platform. -" shellescape() does not work on Windows. +" shellescape does not work on Windows. function! ale#Escape(str) abort if fnamemodify(&shell, ':t') ==? 'cmd.exe' " FIXME: Fix shell escaping for Windows. return fnameescape(a:str) else - return shellescape(a:str) + " An extra space is used here to disable the custom-checks. + return shellescape (a:str) endif endfunction -- cgit v1.2.3