Attempt at fix for fold settings during diff

This commit is contained in:
Karl Yngve Lervåg 2015-11-15 23:02:50 +01:00
parent ce6f423e7a
commit c365183952

View File

@ -41,6 +41,9 @@ endfunction
function! vimtex#fold#init_buffer() " {{{1
if !g:vimtex_fold_enabled | return | endif
" Don't apply fold settings during diff
if &diff | return | endif
" Don't override modeline settings
if s:check_modeline() | return | endif