Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv11979
Modified Files:
compiler.vim
Log Message:
- Bug: When makefile is found,then latex-suite shifts focus to the quicfix
window. (Ulrich Spoerlein)
Fix: mainfname was not being initialized when makefile is found.
TODO: Should we change 'silent!' to 'silent'? RunLaTeX() was actually
throwing vim errors which were supressed.
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** compiler.vim 17 Jan 2003 09:20:00 -0000 1.20
--- compiler.vim 17 Jan 2003 18:41:44 -0000 1.21
***************
*** 91,94 ****
--- 91,103 ----
pclose!
+ " If a *.latexmain file is found, then use that file to
+ " construct a main file.
+ if Tex_GetMainFileName() != ''
+ let mainfname = Tex_GetMainFileName()
+ else
+ " otherwise just use this file.
+ let mainfname = expand("%:t:r")
+ endif
+
" if a makefile exists, just use the make utility
if glob('makefile') != '' || glob('Makefile') != ''
***************
*** 101,112 ****
endif
let &l:makeprg = _makeprg
- " otherwise if a *.latexmain file is found, then use that file to
- " construct a main file.
- elseif Tex_GetMainFileName() != ''
- let mainfname = Tex_GetMainFileName()
- exec 'make '.mainfname
else
- " otherwise just use this file.
- let mainfname = expand("%:t:r")
exec 'make '.mainfname
endif
--- 110,114 ----
|