From 0788628b95e1e748d7760463855d9da76e058ffc Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Fri, 28 Feb 2014 18:46:03 -0800 Subject: [PATCH] only save last action when sending to wakatime-cli --- plugin/wakatime.vim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index e91f383..a364080 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -126,10 +126,6 @@ let s:VERSION = '1.5.2' let last = s:GetLastAction() if s:EnoughTimePassed(now, last) || targetFile != last[2] call s:Api(targetFile, now, 0, last) - else - if now - last[1] > 5 - call s:SetLastAction(last[0], now, targetFile) - endif endif endfunction