mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
Accept buffer number to FugitiveRoute()
This commit is contained in:
1 parent
44e5df8433
commit
4d3835f637
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -44,7 +44,7 @@ function! FugitiveReal(...) abort
|
||||
endfunction
|
||||
|
||||
function! FugitiveRoute(...) abort
|
||||
return fugitive#Route(a:0 ? a:1 : ':/', FugitiveGitDir(a:0 > 1 ? a:2 : -1))
|
||||
return fugitive#Route(a:0 ? a:1 : bufnr(''), FugitiveGitDir(a:0 > 1 ? a:2 : -1))
|
||||
endfunction
|
||||
|
||||
function! FugitivePath(...) abort
|
||||
|
||||
Reference in new issue
Block a user