mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 19:43:46 -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))
|
if has_key(s:temp_files, s:cpath(a:file))
|
||||||
let dict = s:temp_files[s:cpath(a:file)]
|
let dict = s:temp_files[s:cpath(a:file)]
|
||||||
setlocal nomodeline
|
setlocal nomodeline
|
||||||
setlocal bufhidden=delete nobuflisted
|
setlocal bufhidden=delete
|
||||||
setlocal buftype=nowrite
|
setlocal buftype=nowrite
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
if len(dict.dir)
|
if len(dict.dir)
|
||||||
@@ -2214,6 +2214,7 @@ endfunction
|
|||||||
function! s:TempReadPost(file) abort
|
function! s:TempReadPost(file) abort
|
||||||
if has_key(s:temp_files, s:cpath(a:file))
|
if has_key(s:temp_files, s:cpath(a:file))
|
||||||
let dict = 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
|
if has_key(dict, 'filetype') && dict.filetype !=# &l:filetype
|
||||||
let &l:filetype = dict.filetype
|
let &l:filetype = dict.filetype
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user