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 33a7cdf213b7757eca065a131a12dac84da2d7b6 (tree)
parent 80cd9c876e56c70135643601fe08e30010eb88dc
Author: Tim Pope <code@tpope.net>
Date:   Fri, 24 Jun 2022 16:57:03 -0400

Fix FugitiveExtractGitDir() with dict argument

Resolves: https://github.com/tpope/vim-fugitive/issues/2018

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -422,7 +422,7 @@ endfunction function! FugitiveExtractGitDir(path) abort if type(a:path) ==# type({}) - return get(a:1, 'fugitive_dir', get(a:1, 'git_dir', '')) + return get(a:path, 'fugitive_dir', get(a:path, 'git_dir', '')) elseif type(a:path) == type(0) let path = s:Slash(a:path > 0 ? bufname(a:path) : bufname('')) else