forked from luna/vim-rana-local
display output from wakatime-cli when debug mode turned on
This commit is contained in:
parent
ee7854b171
commit
5de0208d3e
1 changed files with 11 additions and 1 deletions
|
@ -188,9 +188,19 @@ let s:VERSION = '4.0.14'
|
|||
echo 'Sending Heartbeat with Command: ' . s:JoinArgs(cmd)
|
||||
endif
|
||||
if s:IsWindows()
|
||||
exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"'
|
||||
if s:is_debug_mode_on
|
||||
let stdout = system('(' . s:JoinArgs(cmd) . ')')
|
||||
if stdout != ''
|
||||
echo stdout
|
||||
endif
|
||||
else
|
||||
exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"'
|
||||
endif
|
||||
else
|
||||
let stdout = system(s:JoinArgs(cmd) . ' &')
|
||||
if s:is_debug_mode_on && stdout != ''
|
||||
echo stdout
|
||||
endif
|
||||
endif
|
||||
call s:SetLastHeartbeat(a:time, a:time, file)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue