motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 2ddf4e97ef173630ad73e104b074c0f8d078f98d (tree)
parent fb66f9a86ddcbdbcc168e6c4e855ee423052adee
Author: Tim Pope <code@tpope.net>
Date:   Tue,  9 Jul 2019 03:49:03 -0400

Work around broken nvim reltime()

Closes https://github.com/tpope/vim-fugitive/issues/1277

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2262,8 +2262,8 @@ function! s:ReloadWinStatus(...) abort return endif let t = b:fugitive_reltime - if reltimestr(reltime(s:last_time, t)) =~# '-' || - \ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t)) =~# '-' + if reltimestr(reltime(s:last_time, t)) =~# '-\|\d\{10\}\.' || + \ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t)) =~# '-\|\d\{10\}\.' exe s:ReloadStatus() endif endfunction