From 06140ecd10456d7a5700cd5a8886181275cc3fc2 Mon Sep 17 00:00:00 2001 From: Matt Carter Date: Thu, 21 May 2015 10:21:16 +1000 Subject: [PATCH] BUGFIX: Shell fails to execute cli.py if plugin_directory contains spaces --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index f8203de..cbbfe4e 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -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