Work around broken nvim reltime()
Closes https://github.com/tpope/vim-fugitive/issues/1277
This commit is contained in:
parent
fb66f9a86d
commit
2ddf4e97ef
@ -2262,8 +2262,8 @@ function! s:ReloadWinStatus(...) abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let t = b:fugitive_reltime
|
let t = b:fugitive_reltime
|
||||||
if reltimestr(reltime(s:last_time, t)) =~# '-' ||
|
if reltimestr(reltime(s:last_time, t)) =~# '-\|\d\{10\}\.' ||
|
||||||
\ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t)) =~# '-'
|
\ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t)) =~# '-\|\d\{10\}\.'
|
||||||
exe s:ReloadStatus()
|
exe s:ReloadStatus()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user