mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-09 23:05:57 +08:00
Set b:git_dir in FugitiveEditor buffers
This should make us a bit more robust in the face of things like symlinks.
This commit is contained in:
1 parent
1d6e601298
commit
92c73bb050
1 file changed
+1
@@ -3338,6 +3338,7 @@ function! s:RunEdit(state, tmp, job) abort
|
||||
endif
|
||||
endtry
|
||||
set bufhidden=wipe
|
||||
call s:InitializeBuffer(a:state)
|
||||
let bufnr = bufnr('')
|
||||
let s:edit_jobs[bufnr] = [a:state, a:tmp, a:job, sentinel]
|
||||
call fugitive#DidChange(a:state.git_dir)
|
||||
|
||||
Reference in new issue
Block a user