fixed type bug

This commit is contained in:
Alan Hamlett 2013-07-08 01:10:58 -07:00
parent 136494c072
commit 7f58561f5e

View file

@ -69,9 +69,9 @@
let extras = extras . '--write' let extras = extras . '--write'
endif endif
if a:endtime if a:endtime
let extras = extras . '--endtime ' . a:endtime let extras = extras . '--endtime ' . printf('%f', a:endtime)
endif endif
exec "silent !python" s:plugin_directory . "packages/wakatime/wakatime.py --file" shellescape(targetFile) "--time" a:time extras . " &" exec "silent !python" s:plugin_directory . "packages/wakatime/wakatime.py --file" shellescape(targetFile) "--time" printf('%s', a:time) extras . " &"
let time = a:time let time = a:time
if a:endtime && time < a:endtime if a:endtime && time < a:endtime
let time = a:endtime let time = a:endtime