summaryrefslogtreecommitdiff
path: root/ale_linters/javascript/jshint.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-07 16:19:40 +0100
committerw0rp <devw0rp@gmail.com>2017-05-07 16:19:40 +0100
commit05bd4f591c3d9f53dff8beadb5468ed7a301fad4 (patch)
treeacd998a687ccb55e08f4780f89fed69cd5cc6a5c /ale_linters/javascript/jshint.vim
parent4228c503f4e89c50606bf225958363ceb349fecd (diff)
downloadale-05bd4f591c3d9f53dff8beadb5468ed7a301fad4.zip
Escape JavaScript executables in commands
Diffstat (limited to 'ale_linters/javascript/jshint.vim')
-rw-r--r--ale_linters/javascript/jshint.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim
index ddb8619f..657b0ff5 100644
--- a/ale_linters/javascript/jshint.vim
+++ b/ale_linters/javascript/jshint.vim
@@ -27,7 +27,7 @@ function! ale_linters#javascript#jshint#GetCommand(buffer) abort
\ get(g:, 'ale_jshint_config_loc', '')
\)
- let l:command = ale_linters#javascript#jshint#GetExecutable(a:buffer)
+ let l:command = fnameescape(ale_linters#javascript#jshint#GetExecutable(a:buffer))
let l:command .= ' --reporter unix --extract auto'
if !empty(l:jshint_config)