diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 79a2916..2130ee5 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1126,11 +1126,11 @@ function! s:Diff(bang,...) abort elseif (!a:0 || a:1 == ':') && s:buffer().commit() =~# '^[0-1]\=$' && s:repo().git_chomp_in_tree('ls-files', '--unmerged', '--', s:buffer().path()) !=# '' let nr = bufnr('') execute 'leftabove '.split.' `=fugitive#buffer().repo().translate(s:buffer().expand('':2''))`' - execute 'nnoremap dp :diffput '.nr.'' + execute 'nnoremap dp :diffput '.nr.'diffupdate' diffthis wincmd p execute 'rightbelow '.split.' `=fugitive#buffer().repo().translate(s:buffer().expand('':3''))`' - execute 'nnoremap dp :diffput '.nr.'' + execute 'nnoremap dp :diffput '.nr.'diffupdate' diffthis wincmd p diffthis