From e98a9f394f405a298bb248f438c49d1f1f177ddf Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Thu, 13 Apr 2017 22:51:24 -0700 Subject: [PATCH] run wakatime-cli in foreground when debug mode on --- plugin/wakatime.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 09ba95c..8e3b588 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -192,7 +192,11 @@ let s:VERSION = '4.0.14' exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"' endif else - let stdout = system(s:JoinArgs(cmd) . ' &') + if s:is_debug_mode_on + let stdout = system(s:JoinArgs(cmd)) + else + let stdout = system(s:JoinArgs(cmd) . ' &') + endif endif call s:SetLastHeartbeat(a:time, a:time, file) if s:is_debug_mode_on && stdout != ''