summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box/findmain.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/latex-box/findmain.vim')
-rw-r--r--ftplugin/latex-box/findmain.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftplugin/latex-box/findmain.vim b/ftplugin/latex-box/findmain.vim
index 622c408f..b9871a61 100644
--- a/ftplugin/latex-box/findmain.vim
+++ b/ftplugin/latex-box/findmain.vim
@@ -30,7 +30,7 @@ function! LatexBox_GetMainFileName(...)
" move up the directory tree until we find a .latexmain file.
" TODO: Should we be doing this recursion by default, or should there be a
" setting?
- while glob('*.latexmain') == ''
+ while glob('*.latexmain',1) == ''
let dirmodifier = dirmodifier.':h'
let dirNew = fnameescape(expand(dirmodifier))
" break from the loop if we cannot go up any further.
@@ -41,7 +41,7 @@ function! LatexBox_GetMainFileName(...)
exe 'cd '.dirLast
endwhile
- let lheadfile = glob('*.latexmain')
+ let lheadfile = glob('*.latexmain',1)
if lheadfile != ''
" Remove the trailing .latexmain part of the filename... We never want
" that.