diff --git a/autoload/latex.vim b/autoload/latex.vim index bd9de31..264acf8 100644 --- a/autoload/latex.vim +++ b/autoload/latex.vim @@ -238,6 +238,13 @@ endfunction " {{{1 s:get_main_recurse function! s:get_main_recurse(file) + " + " Check if file is readable + " + if !filereadable(a:file) + return 0 + endif + " " Check if current file is a main file "