Skip to content

Commit

Permalink
Merge pull request #230 from ThomasFeher/master
Browse files Browse the repository at this point in the history
fix bug #229
  • Loading branch information
lervag committed Jan 29, 2015
2 parents b0a8486 + 46346bc commit 086b025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ftplugin/latex-box/complete.vim
Expand Up @@ -459,7 +459,8 @@ function! s:GetLabelCache(file)

if !has_key(s:LabelCache , a:file) || s:LabelCache[a:file][0] != getftime(a:file)
" Open file in temporary split window for label extraction.
silent execute '1sp +let\ labels=s:ExtractLabels()|let\ inputs=s:ExtractInputs()|quit! ' . fnameescape(a:file)
let main_tex_file = LatexBox_GetMainTexFile()
silent execute '1sp +let\ b:main_tex_file=main_tex_file|let\ labels=s:ExtractLabels()|let\ inputs=s:ExtractInputs()|quit! ' . fnameescape(a:file)
let s:LabelCache[a:file] = [ getftime(a:file), labels, inputs ]
endif

Expand Down

0 comments on commit 086b025

Please sign in to comment.