Skip to content

Commit

Permalink
Merge pull request #49 from yogeshnachnani/master
Browse files Browse the repository at this point in the history
makes plugin compatible with old vim installations that do not have q…
  • Loading branch information
alanhamlett authored Apr 30, 2017
2 parents dcfaf16 + 108e2e5 commit 67a8a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ let s:VERSION = '5.0.1'
autocmd BufEnter,VimEnter * call s:InitAndHandleActivity(s:false)
autocmd CursorMoved,CursorMovedI * call s:HandleActivity(s:false)
autocmd BufWritePost * call s:HandleActivity(s:true)
autocmd QuitPre * call s:SendHeartbeats()
if exists('##QuitPre')
autocmd QuitPre * call s:SendHeartbeats()
endif
augroup END

" }}}
Expand Down

0 comments on commit 67a8a4e

Please sign in to comment.