don't send endtime when opening vim and enough time has passed since last action

This commit is contained in:
Alan Hamlett 2013-07-20 15:46:53 -07:00
parent 45d0efaa7b
commit afd1b87527

View file

@ -194,7 +194,11 @@ let s:VERSION = '0.2.4'
call s:Api(targetFile, now, 0.0, 0, last) call s:Api(targetFile, now, 0.0, 0, last)
endif endif
else else
if !s:fresh
call s:Api(targetFile, now, last[0], 0, last) call s:Api(targetFile, now, last[0], 0, last)
else
call s:Api(targetFile, now, 0, 0, last)
endif
endif endif
else else
if now - last[1] > 5 if now - last[1] > 5
@ -215,7 +219,11 @@ let s:VERSION = '0.2.4'
call s:Api(targetFile, now, 0.0, 1, last) call s:Api(targetFile, now, 0.0, 1, last)
endif endif
else else
if !s:fresh
call s:Api(targetFile, now, last[0], 1, last) call s:Api(targetFile, now, last[0], 1, last)
else
call s:Api(targetFile, now, 0, 1, last)
endif
endif endif
else else
call s:Api(targetFile, now, 0.0, 1, last) call s:Api(targetFile, now, 0.0, 1, last)