SignifyDiff: set filetype before diffmode
References https://github.com/mhinz/vim-signify/issues/285
This commit is contained in:
parent
b8a1b656c6
commit
8b900a5491
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user