mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 15:23:51 -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
|
endif
|
||||||
endtry
|
endtry
|
||||||
set bufhidden=wipe
|
set bufhidden=wipe
|
||||||
|
call s:InitializeBuffer(a:state)
|
||||||
let bufnr = bufnr('')
|
let bufnr = bufnr('')
|
||||||
let s:edit_jobs[bufnr] = [a:state, a:tmp, a:job, sentinel]
|
let s:edit_jobs[bufnr] = [a:state, a:tmp, a:job, sentinel]
|
||||||
call fugitive#DidChange(a:state.git_dir)
|
call fugitive#DidChange(a:state.git_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user