From 8b900a5491112d52f7a6495b020a6df883d3e1d9 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 19 Feb 2019 14:18:31 +0100 Subject: [PATCH] SignifyDiff: set filetype before diffmode References https://github.com/mhinz/vim-signify/issues/285 --- autoload/sy/repo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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