forked from luna/vim-rana-local
remove leading whitespace from reltimestr
This commit is contained in:
parent
31f61d4aa7
commit
5b52ce47d1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue