From 6b4b3f72b789b0482f61e8d0541cca9f5dc99d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 27 Mar 2016 13:41:38 +0200 Subject: [PATCH] Use getline instead of readfile --- autoload/vimtex/fold.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/fold.vim b/autoload/vimtex/fold.vim index a348fd9..84f3764 100644 --- a/autoload/vimtex/fold.vim +++ b/autoload/vimtex/fold.vim @@ -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 . '''')