Merge pull request #26 from hash-bang/master

BUGFIX: Shell fails to execute cli.py if plugin_directory contains spaces
This commit is contained in:
Alan Hamlett 2015-05-20 20:12:25 -07:00
commit d33ad3e757
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ let s:VERSION = '4.0.0'
let python_bin = 'pythonw'
endif
endif
let cmd = [python_bin, '-W', 'ignore', s:plugin_directory . 'packages/wakatime/cli.py']
let cmd = [python_bin, '-W', 'ignore', '"' . s:plugin_directory . 'packages/wakatime/cli.py"']
let cmd = cmd + ['--file', shellescape(targetFile)]
let cmd = cmd + ['--plugin', shellescape(printf('vim/%d vim-wakatime/%s', v:version, s:VERSION))]
if a:is_write