Identify new buffers as "file"

This commit is contained in:
Tim Pope 2011-08-25 20:23:47 -04:00
parent 9dfa357770
commit 11951a614c

View File

@ -1410,7 +1410,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
else
let cmd += ['--contents', '-']
endif
let basecmd = call(s:repo().git_command,cmd+['--',s:buffer().path()],s:repo())
let basecmd = escape(call(s:repo().git_command,cmd+['--',s:buffer().path()],s:repo()),'!')
try
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
if !s:repo().bare()