From 05bd4f591c3d9f53dff8beadb5468ed7a301fad4 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 7 May 2017 16:19:40 +0100 Subject: Escape JavaScript executables in commands --- ale_linters/javascript/flow.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/javascript/flow.vim') diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim index 24c7bca5..14f65126 100644 --- a/ale_linters/javascript/flow.vim +++ b/ale_linters/javascript/flow.vim @@ -27,7 +27,7 @@ function! ale_linters#javascript#flow#GetCommand(buffer) abort return '' endif - return ale_linters#javascript#flow#GetExecutable(a:buffer) + return fnameescape(ale_linters#javascript#flow#GetExecutable(a:buffer)) \ . ' check-contents --respect-pragma --json --from ale %s' endfunction -- cgit v1.2.3