Work around minibufexpl/autochdir induced error

Closes https://github.com/tpope/vim-fugitive/issues/1456
This commit is contained in:
Tim Pope
2020-02-18 12:16:10 -05:00
parent 81ca98d7e8
commit 2401f1a7da

View File

@@ -2201,7 +2201,7 @@ function! s:TempReadPre(file) abort
if has_key(s:temp_files, s:cpath(a:file))
let dict = s:temp_files[s:cpath(a:file)]
setlocal nomodeline
setlocal bufhidden=delete nobuflisted
setlocal bufhidden=delete
setlocal buftype=nowrite
setlocal nomodifiable
if len(dict.dir)
@@ -2214,6 +2214,7 @@ endfunction
function! s:TempReadPost(file) abort
if has_key(s:temp_files, s:cpath(a:file))
let dict = s:temp_files[s:cpath(a:file)]
setlocal nobuflisted
if has_key(dict, 'filetype') && dict.filetype !=# &l:filetype
let &l:filetype = dict.filetype
endif