mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05: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:
@@ -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