forked from luna/vim-rana-local
converting float to int because Vim can't use mod with floats
This commit is contained in:
parent
c36bf9ee36
commit
ae0c9cbbb9
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ let s:VERSION = '0.2.2'
|
||||||
let duration = round(duration / 60)
|
let duration = round(duration / 60)
|
||||||
let units = 'minute'
|
let units = 'minute'
|
||||||
if duration >= 60
|
if duration >= 60
|
||||||
let remainder = duration % 60
|
let remainder = float2nr(round(duration)) % 60
|
||||||
if remainder > 0
|
if remainder > 0
|
||||||
let minutes = printf(" and %f minute", remainder)
|
let minutes = printf(" and %f minute", remainder)
|
||||||
if remainder > 1
|
if remainder > 1
|
||||||
|
|
Loading…
Reference in a new issue