From 5b52ce47d134c3d7b13918a1385641729d355186 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Mon, 24 Apr 2017 00:55:32 -0700 Subject: [PATCH] remove leading whitespace from reltimestr --- plugin/wakatime.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 8573ae7..c44175d 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -40,7 +40,7 @@ let s:VERSION = '5.0.1' let s:config_file = s:home . '/.wakatime.cfg' let s:default_configs = ['[settings]', 'debug = false', 'hidefilenames = false', 'ignore =', ' COMMIT_EDITMSG$', ' PULLREQ_EDITMSG$', ' MERGE_MSG$', ' TAG_EDITMSG$'] let s:data_file = s:home . '/.wakatime.data' - let s:has_reltime = has('reltime') && split(reltimestr(reltime()), '\.')[0] + 0 > 1388534400 + let s:has_reltime = has('reltime') && split(split(reltimestr(reltime()))[0], '\.')[0] + 0 > 1388534400 let s:config_file_already_setup = s:false let s:debug_mode_already_setup = s:false let s:is_debug_mode_on = s:false @@ -210,7 +210,7 @@ let s:VERSION = '5.0.1' function! s:CurrentTimeStr() if s:has_reltime - return reltimestr(reltime()) + return split(reltimestr(reltime()))[0] endif return printf('%d', localtime()) endfunction