forked from luna/vim-rana-local
fixed bug in away function.
This commit is contained in:
parent
638c32fd77
commit
0860980e16
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
vim-wakatime 0.2.1
|
||||
==================
|
||||
vim-wakatime
|
||||
============
|
||||
|
||||
Automatic time tracking for Vim.
|
||||
|
||||
|
|
|
@ -139,8 +139,8 @@ let s:VERSION = '0.2.1'
|
|||
return 0
|
||||
endfunction
|
||||
|
||||
function! s:Away(now, prev)
|
||||
let duration = a:now - a:prev
|
||||
function! s:Away(now, last)
|
||||
let duration = a:now - a:last[1]
|
||||
let units = 'seconds'
|
||||
if duration > 59
|
||||
let duration = round(duration / 60)
|
||||
|
|
Loading…
Reference in a new issue