From b571bff9ec146685947ab91a2f11dd73d0d7ae44 Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 7 Jun 2018 09:13:59 +0900 Subject: [PATCH] Specify 'nowrite' to status buffer and blame buffer --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4d6d1d9..c020d09 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -698,7 +698,7 @@ function! s:Status(bang, count, mods) abort try exe (a:mods ==# '' ? '' : a:mods) 'Gpedit :' wincmd P - setlocal foldmethod=syntax foldlevel=1 + setlocal foldmethod=syntax foldlevel=1 buftype=nowrite nnoremap q :bdelete catch /^fugitive:/ return 'echoerr v:errmsg' @@ -2004,7 +2004,7 @@ function! s:Blame(bang,line1,line2,count,args) abort if exists('+cursorbind') setlocal cursorbind 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') setlocal concealcursor=nc conceallevel=2 endif