don't send endtime when opening vim and enough time has passed since last action
This commit is contained in:
parent
45d0efaa7b
commit
afd1b87527
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue