Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv12883
Modified Files:
texproject.vim
Log Message:
escape filename while saving etc (Diego Carafini).
Also only source mainfilename if its .latexmain. This change is in
anticipation of future changes when Tex_GetMainFileName() will return
expand('%:p') when a .latexmain does not exist. In this case, we do not
want to source the .tex file...
Index: texproject.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texproject.vim,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** texproject.vim 23 Apr 2003 17:28:31 -0000 1.2
--- texproject.vim 25 Jul 2003 01:21:26 -0000 1.3
***************
*** 26,31 ****
exe 'split '.Tex_GetMainFileName(":p")
else
! exe 'split '.s:path.'/projecttemplate.vim'
! exe 'saveas '.file.'.latexmain'
let g:Tex_ProjectExists = 1
endif
--- 26,31 ----
exe 'split '.Tex_GetMainFileName(":p")
else
! exe 'split '.escape(s:path.'/projecttemplate.vim', ' ')
! exe 'saveas '.escape(file.'.latexmain', ' ')
let g:Tex_ProjectExists = 1
endif
***************
*** 64,68 ****
" Load project file if exists
! if Tex_GetMainFileName() != ''
exe 'source '.Tex_GetMainFileName(":p")
let g:Tex_ProjectExists = 1
--- 64,68 ----
" Load project file if exists
! if Tex_GetMainFileName() != '' && Tex_GetMainFileName(':e') == 'latexmain'
exe 'source '.Tex_GetMainFileName(":p")
let g:Tex_ProjectExists = 1
|