Use getline instead of readfile
This commit is contained in:
parent
6c31d6c5af
commit
6b4b3f72b7
@ -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 . '''')
|
||||
|
Loading…
Reference in New Issue
Block a user