mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#549 Temporarily revert shell escaping changes, just for Windows
This commit is contained in:
@@ -123,3 +123,14 @@ function! ale#Var(buffer, variable_name) abort
|
||||
|
||||
return getbufvar(str2nr(a:buffer), l:full_name, g:[l:full_name])
|
||||
endfunction
|
||||
|
||||
" Escape a string suitably for each platform.
|
||||
" 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)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user