From a7fa9996667511e16c2707bd26e99cd147e3b43f Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 13 Nov 2013 10:15:50 -0800 Subject: [PATCH] replace comma with period anywhere a float gets converted to a string --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 0447f77..77315c8 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -105,7 +105,7 @@ let s:VERSION = '1.2.3' function! s:SetLastAction(time, last_update, targetFile) let s:fresh = 0 - call writefile([printf('%f', a:time), printf('%f', a:last_update), a:targetFile], expand("$HOME/.wakatime.data")) + call writefile([substitute(printf('%f', a:time), ',', '.', ''), substitute(printf('%f', a:last_update), ',', '.', ''), a:targetFile], expand("$HOME/.wakatime.data")) endfunction function! s:GetChar()