Skip to content

Commit

Permalink
Hide empty timer for broken/partial implementations like chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
alyosha committed Nov 19, 2021
1 parent 2d15624 commit 0eacc0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/vimedia.vim
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ fu! PlaybackTicker()
let l:pos_seconds = s:ticker_microseconds / 1000000
let l:min = l:pos_seconds / 60
let l:sec = l:pos_seconds - (l:min * 60)
if l:min == 0 && l:sec == 0
return ''
endif
return l:min . ":" . (l:sec > 9 ? l:sec : ("0" . l:sec))
endfu

Expand Down

0 comments on commit 0eacc0d

Please sign in to comment.