fixed float format in printf

This commit is contained in:
Alan Hamlett 2013-07-14 13:02:35 -07:00
parent ae0c9cbbb9
commit 2b072d642f

View file

@ -158,7 +158,7 @@ let s:VERSION = '0.2.2'
if duration >= 60
let remainder = float2nr(round(duration)) % 60
if remainder > 0
let minutes = printf(" and %f minute", remainder)
let minutes = printf(" and %.f minute", remainder)
if remainder > 1
let minutes = minutes . 's'
endif