Use getline instead of readfile

This commit is contained in:
Karl Yngve Lervåg 2016-03-27 13:41:38 +02:00
parent 6c31d6c5af
commit 6b4b3f72b7

View File

@ -180,7 +180,7 @@ function! s:refresh_folded_sections()
" Initialize
let b:vimtex_fold.parts = []
let buffer = readfile(expand('%'))
let buffer = getline(1,'$')
" Parse part commands (frontmatter, appendix, part, etc)
let lines = filter(copy(buffer), 'v:val =~ ''' . s:parts . '''')