Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv3810
Modified Files:
main.vim
Log Message:
. merging changes from the b-newpackages branch.
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** main.vim 26 Dec 2002 23:51:25 -0000 1.21
--- main.vim 27 Dec 2002 22:55:44 -0000 1.22
***************
*** 4,8 ****
" Email: sr...@fa...
" URL:
! " Last Change: Thu Dec 26 03:00 PM 2002 PST
"
" Help:
--- 4,8 ----
" Email: sr...@fa...
" URL:
! " Last Change: Fri Dec 27 02:00 PM 2002 PST
"
" Help:
***************
*** 358,367 ****
" i.e if main.tex.latexmain exists, then returns:
" d:/path/to/main
! function! Tex_GetMainFileName()
let curd = getcwd()
exe 'cd '.expand('%:p:h')
let lheadfile = glob('*.latexmain')
if lheadfile != ''
! let lheadfile = fnamemodify(lheadfile, ':p:r:r')
endif
exe 'cd '.curd
--- 358,372 ----
" i.e if main.tex.latexmain exists, then returns:
" d:/path/to/main
! function! Tex_GetMainFileName(...)
! if a:0 > 0
! let modifier = a:1
! else
! let modifier = ':p:r:r'
! endif
let curd = getcwd()
exe 'cd '.expand('%:p:h')
let lheadfile = glob('*.latexmain')
if lheadfile != ''
! let lheadfile = fnamemodify(lheadfile, modifier)
endif
exe 'cd '.curd
|