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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user