SignifyDiff: set filetype before diffmode

References https://github.com/mhinz/vim-signify/issues/285
This commit is contained in:
Marco Hinz 2019-02-19 14:18:31 +01:00
parent b8a1b656c6
commit 8b900a5491
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -285,9 +285,9 @@ function! sy#repo#diffmode(do_tab) abort
execute chdir fnameescape(cwd) execute chdir fnameescape(cwd)
endtry endtry
silent 1delete silent 1delete
diffthis
set buftype=nofile bufhidden=wipe nomodified set buftype=nofile bufhidden=wipe nomodified
let &filetype = ft let &filetype = ft
diffthis
wincmd p wincmd p
normal! ]czt normal! ]czt
endfunction endfunction