From f20a93e7781a0167fc5e2afb0043eea7a159686d Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 4 Oct 2017 08:20:19 -0700 Subject: [PATCH] fix bug causing extra heartbeats time to contain two decimals --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index d386975..f9cb175 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -377,7 +377,7 @@ let s:VERSION = '5.0.2' function! s:OrderTime(time_str, loop_count) " Add a milisecond to a:time. " Time prevision doesn't matter, but order of heartbeats does. - if !a:time_str =~ "\." + if !(a:time_str =~ "\.") let millisecond = printf('%d', a:loop_count) while strlen(millisecond) < 6 let millisecond = '0' . millisecond