Specify 'nowrite' to status buffer and blame buffer
This commit is contained in:
parent
5c2095be39
commit
b571bff9ec
@ -698,7 +698,7 @@ function! s:Status(bang, count, mods) abort
|
|||||||
try
|
try
|
||||||
exe (a:mods ==# '<mods>' ? '' : a:mods) 'Gpedit :'
|
exe (a:mods ==# '<mods>' ? '' : a:mods) 'Gpedit :'
|
||||||
wincmd P
|
wincmd P
|
||||||
setlocal foldmethod=syntax foldlevel=1
|
setlocal foldmethod=syntax foldlevel=1 buftype=nowrite
|
||||||
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
|
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr v:errmsg'
|
return 'echoerr v:errmsg'
|
||||||
@ -2004,7 +2004,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
if exists('+cursorbind')
|
if exists('+cursorbind')
|
||||||
setlocal cursorbind
|
setlocal cursorbind
|
||||||
endif
|
endif
|
||||||
setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable winfixwidth filetype=fugitiveblame
|
setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable winfixwidth filetype=fugitiveblame buftype=nowrite
|
||||||
if exists('+concealcursor')
|
if exists('+concealcursor')
|
||||||
setlocal concealcursor=nc conceallevel=2
|
setlocal concealcursor=nc conceallevel=2
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user