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 a877908acd2afc6821dddcac1ee551fced32d51d (tree)
parent 6c89a3675b1f9baf445e3a1b90fff3f558c85e31
Author: Tim Pope <code@tpope.net>
Date:   Mon, 30 Jul 2018 01:29:10 -0400

Fix check for absolute path in FugitiveGenerate()

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -89,7 +89,7 @@ function! FugitivePath(...) abort endfunction function! FugitiveGenerate(...) abort - if a:0 && s:shellslash(a:0) =~# '^\%(\a\a\+:\)\=\%(a:\)\=/\|^[~$]' + if a:0 && s:shellslash(a:1) =~# '^\%(\a\a\+:\)\=\%(a:\)\=/\|^[~$]' return a:1 endif return fugitive#repo(FugitiveGitDir(a:0 > 1 ? a:2 : -1)).translate(a:0 ? a:1 : '', 1)