From 638c32fd77ec57b2a8c7dcfa3f5826151f2f5158 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 9 Jul 2013 23:49:04 -0700 Subject: [PATCH] fixed bug in in ShouldPromptUser function --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index e96a2f1..fc21aee 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -129,7 +129,7 @@ let s:VERSION = '0.2.1' function! s:ShouldPromptUser(now, last) let prev = a:last[1] - if s:fresh || prev[0] < 1 + if s:fresh || prev < 1 return 0 endif let duration = a:now - prev