From 92c73bb0507338441733198d630a1fe5e7fdac3a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 7 Jun 2022 05:20:16 -0400 Subject: [PATCH] Set b:git_dir in FugitiveEditor buffers This should make us a bit more robust in the face of things like symlinks. --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 51c3bea..d087ee2 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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)