mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Work around minibufexpl/autochdir induced error
Closes https://github.com/tpope/vim-fugitive/issues/1456
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user