diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index f8b3072..6921ce5 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -285,9 +285,9 @@ function! sy#repo#diffmode(do_tab) abort execute chdir fnameescape(cwd) endtry silent 1delete - diffthis set buftype=nofile bufhidden=wipe nomodified let &filetype = ft + diffthis wincmd p normal! ]czt endfunction