forked from luna/vim-rana-local
run wakatime-cli in foreground when debug mode on
This commit is contained in:
parent
2bff8ca6cf
commit
e98a9f394f
1 changed files with 5 additions and 1 deletions
|
@ -191,9 +191,13 @@ let s:VERSION = '4.0.14'
|
|||
else
|
||||
exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"'
|
||||
endif
|
||||
else
|
||||
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 != ''
|
||||
echo '[WakaTime] Heartbeat Command: ' . s:JoinArgs(cmd)
|
||||
|
|
Loading…
Reference in a new issue