[Vim-latex-cvs] vimfiles/ftplugin/latex-suite compiler.vim,1.62,1.63
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2004-05-16 17:42:00
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16219 Modified Files: compiler.vim Log Message: Bug: Part compilation doesn't work because the temporary file created does not include the preamble of the original main file. Why: We used Tex_GetMainFileName(':p:r') from before the time Tex_GetMainFileName was changed. Fix: Use Tex_GetMainFileName(':p') instead. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** compiler.vim 14 May 2004 17:37:29 -0000 1.62 --- compiler.vim 16 May 2004 17:41:49 -0000 1.63 *************** *** 396,400 **** " compile it. function! Tex_PartCompile() range ! call Tex_Debug('getting to Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' --- 396,400 ---- " compile it. function! Tex_PartCompile() range ! call Tex_Debug('+Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' *************** *** 426,430 **** " If mainfile exists open it in tiny window and extract preamble there, " otherwise do it from current file ! let mainfile = Tex_GetMainFileName(":p:r") exe 'bot 1 split '.escape(mainfile, ' ') exe '1,/\s*\\begin{document}/w '.tmpfile --- 426,430 ---- " If mainfile exists open it in tiny window and extract preamble there, " otherwise do it from current file ! let mainfile = Tex_GetMainFileName(":p") exe 'bot 1 split '.escape(mainfile, ' ') exe '1,/\s*\\begin{document}/w '.tmpfile |